-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigure.h
41 lines (31 loc) · 857 Bytes
/
Configure.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//author:autumoon
//mail:[email protected]
#pragma once
#include <tchar.h>
#include "Defines.h"
#include "SimpleIni.h"
#include "StdStrFile.h"
typedef struct _config_s
{
bool bRemPath;
std::vector<_tstring> vDstPaths;
std::vector<_tstring> vItemPaths;
std::vector<_tstring> vSuffixs;
_config_s()
{
//ÄÚ²¿³õʼ»¯
bRemPath = true;
vSuffixs.push_back(_T("*"));
}
}config_s;
int ReadIniFile(const _tstring& strIniPath, config_s& _cfg);
int WriteIniFile(const _tstring& strIniPath, const config_s& _cfg);
_tstring VectorToString(const std::vector<_tstring>& vStrings);
//_tstring GetIniPath()
//{
//TCHAR chpath[MAX_PATH];
//GetModuleFileName(NULL, chpath, sizeof(chpath));
//_tstring strModulePath = CMfcStrFile::CString2string(chpath);
//_tstring strIniPath = CStdStr::ReplaceSuffix(strModulePath, _T(".ini"));
//return strIniPath;
//}