You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#ifndef NMCALCULATIONUTILS_H
|
|
|
|
|
|
#define NMCALCULATIONUTILS_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
#include "nmCalculation_global.h"
|
|
|
|
|
|
#include "nmCalculationDefine.h"
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
|
|
class NMCALCULATION_EXPORT nmCalculationUtils {
|
|
|
|
|
|
public:
|
|
|
|
|
|
nmCalculationUtils();
|
|
|
|
|
|
|
|
|
|
|
|
static bool copyFileToDir(QString filePath, QString destDir);
|
|
|
|
|
|
static bool createDirectoryIfNotExists(QString directoryPath);
|
|
|
|
|
|
static bool copyFile(const std::string& sourcePath, const std::string& destinationPath);
|
|
|
|
|
|
static bool removeDirectory(const QString &dirPath);
|
|
|
|
|
|
static bool writeFile(const QStringList& content, const QString &filePath);
|
|
|
|
|
|
static QStringList readFile(const QString & filePath);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // NMCALCULATIONUTILS_H
|