-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigfile.h
45 lines (36 loc) · 1.08 KB
/
configfile.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
42
43
44
45
#ifndef CONFIGFILE_H
#define CONFIGFILE_H
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
using namespace std;
namespace EdenClass
{
class ConfigFile
{
public:
ConfigFile();
~ConfigFile();
vector<string> Raw;
void FileLoad(string FileName);
void FileSave(string FileName);
void ParamClear();
void ParamRemove(string Name);
void ParamSet(string Name, string Value);
void ParamSet(string Name, short Value);
void ParamSet(string Name, int Value);
void ParamSet(string Name, long long Value);
void ParamSet(string Name, bool Value);
void ParamGet(string Name, string &Value);
void ParamGet(string Name, short &Value);
void ParamGet(string Name, int &Value);
void ParamGet(string Name, long long &Value);
void ParamGet(string Name, bool &Value);
string ParamGetS(string Name);
int ParamGetI(string Name);
long long ParamGetL(string Name);
bool ParamGetB(string Name);
};
}
#endif // CONFIGFILE_H