#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 &vec); void ReadFileToDoubleVec(const CString &FilePath,vector> &Vec); bool IsFileExist(CString FilePath); void GetChildFileOrDirName(bool bDir,CString strPath,vector & 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 &vec,ofstream *file); CString GetWorkPath(); bool IsDirectoryExists(CString const& path); private: void GetDoubleVal(CString Str,vector &Vec); };