ulib
1.0
S.W. Lee's essential C++ library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
Pages
include
uconfigfile.h
Go to the documentation of this file.
1
13
#ifndef ___uconfigfile___
14
#define ___uconfigfile___
15
16
#include <stdio.h>
17
#include <string.h>
18
#include <stdlib.h>
19
#include <map>
20
#include <string>
21
#include "
utextfile.h
"
22
#include "
ustringlist.h
"
23
#include "
udir.h
"
24
25
using namespace
std;
26
27
namespace
ulib {
28
30
40
41
42
// config 클래스
43
class
CUConfigFile
{
44
public
:
45
// 생성자, 소멸자
46
CUConfigFile
();
47
CUConfigFile
(
char
fn[] );
48
~
CUConfigFile
();
49
50
bool
Load(
CUString
arg_filename );
51
bool
IsLoad();
52
bool
GetValue(
CUString
key,
CUString
&ret_value );
53
bool
SetValue(
CUString
key,
CUString
value );
54
bool
HaveValue(
CUString
key );
55
bool
CheckValue(
CUString
key );
56
void
Print( FILE *fp );
57
void
GetKeyList(
CUStringList
&key );
58
59
60
private
:
61
CUString
filename;
62
//CUStringList data; ///< 저장되는 값
63
map<string, string> key_value_map;
64
CUTextFile
config_file;
65
};
66
67
68
}
69
70
#endif
Generated on Sat Apr 6 2013 15:15:05 for ulib by
1.8.1.2