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.
52 lines
2.0 KiB
C++
52 lines
2.0 KiB
C++
#pragma once
|
|
#include "GlobalDefine.h"
|
|
|
|
class CCsvData
|
|
{
|
|
|
|
public:
|
|
void AddData(CString Str,bool bLineEnd);
|
|
public:
|
|
vector<CString> m_StrVecTemp;
|
|
vector<vector<CString>> m_DataVec;
|
|
};
|
|
|
|
|
|
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);
|
|
bool CreateMultipleDirectory(const CString& szPath);
|
|
void OpenDir(CString DirPath);
|
|
void CopyFile(CString Path1,CString Path2);
|
|
CString FileReName(CString FilePath,CString NewName);
|
|
CString GetFileNameFromPath(CString Path,bool bDelSuffix);
|
|
void WriteDbxyVecToFile(vector<Dbxy> &vec,CString Path);
|
|
CString GetWorkPath();
|
|
bool IsDirectoryExists(CString const& path);
|
|
int ReadFileToStrVec(const CString &FilePath,vector<vector<CString>> &Vec,bool bGapTab = false);
|
|
void GetStringVal(CString Str,vector<CString> &Vec,bool bGapTab);
|
|
void GetDoubleVal(CString Str,vector<double> &Vec);
|
|
BOOL ReNameFolder(LPCTSTR lpszFromPath,LPCTSTR lpszToPath);
|
|
BOOL MoveFolder(LPCTSTR lpszFromPath,LPCTSTR lpszToPath);
|
|
BOOL CopyFolder(LPCTSTR lpszFromPath,LPCTSTR lpszToPath);
|
|
BOOL DeleteFolder(LPCTSTR lpszPath);
|
|
BOOL CopyDirOrFile(CString src,CString dest);
|
|
void WriteDataToExcel(CString DirPath,CString FileName,CCsvData &CsvData,bool bAppend);
|
|
private:
|
|
|
|
};
|
|
|