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.

31 lines
1.0 KiB
C++

#pragma once
#include "GlobalDefine.h"
class CPropertie;
//¹ÜÀí²Ù×÷ÎļþµÄ¹¦ÄÜ
class CFileMgr
{
public:
CFileMgr(void);
~CFileMgr(void);
void GetFullFilePath(char *FilePath,CString FileName);
void GetFullFilePath(CString &FilePath,CString FileName);
void ReadFileToStringVec(const CString &FileName,vector<CString> &vec);
void ReadFileToDoubleVec(const CString &FilePath,vector<vector<double>> &Vec);
bool IsFileExist(CString FilePath);
void GetChildFileOrDirName(bool bDir,CString strPath,vector <CString>& Vec,CString Suffix);
void DeleteDirFile(CString FilePath);
void DeleteDir(CString DirPath);
void CreatDir(CString DirPath);
void CopyFile(CString Path1,CString Path2);
CString GetFileNameFromPath(CString Path,bool bDelSuffix);
void WriteDbxyVecToFile(vector<Dbxy> &vec,ofstream *file);
CString GetWorkPath();
bool IsDirectoryExists(CString const& path);
private:
void GetDoubleVal(CString Str,vector<double> &Vec);
};