2023-06-28 16:48:28 +08:00
|
|
|
#ifndef FILE_HELPER_H
|
|
|
|
|
#define FILE_HELPER_H
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
namespace Recon
|
|
|
|
|
{
|
2023-06-28 17:10:33 +08:00
|
|
|
const std::string DEFAULT_CONFIG_PATH = "/home/UR/ConfigFiles/";
|
2023-12-22 11:06:13 +08:00
|
|
|
const std::string DEFAULT_OUTPUT_PATH = "/home/UR/ReconResult/";
|
|
|
|
|
const std::string DEFAULT_OUTPUT_FILENAME = "USCT_Result1219.mat";
|
2023-06-28 16:48:28 +08:00
|
|
|
|
|
|
|
|
std::string getPath(const std::string &aFullPath);
|
|
|
|
|
bool endsWithMat(const std::string &aStr);
|
|
|
|
|
bool isDirectory(const std::string &aPath);
|
2023-08-01 15:59:23 +08:00
|
|
|
bool exists(const std::string &aPath);
|
|
|
|
|
bool mkdir(const std::string &aPath);
|
2023-06-28 16:48:28 +08:00
|
|
|
std::string fixPathSlash(const std::string& aPath);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|