41 |
std::multimap<std::string,Value> content_; |
std::multimap<std::string,Value> content_; |
42 |
typedef std::multimap<std::string,Value>::const_iterator content_iterator; |
typedef std::multimap<std::string,Value>::const_iterator content_iterator; |
43 |
|
|
44 |
|
std::string filename_; |
45 |
|
bool Open(); |
46 |
|
|
47 |
public: |
public: |
48 |
ConfigFile(); |
ConfigFile(); |
49 |
ConfigFile(std::string const& configFile); |
ConfigFile(std::string const& configFile); |
50 |
bool Open(std::string const& configFile); |
bool Open(std::string const& configFile); |
51 |
|
bool Reload(); |
52 |
|
|
53 |
std::string DumpConfig() const; |
std::string DumpConfig() const; |
54 |
|
|
59 |
Value const& GetValue(std::string const& section, std::string const& entry, std::string const& value); |
Value const& GetValue(std::string const& section, std::string const& entry, std::string const& value); |
60 |
}; |
}; |
61 |
|
|
62 |
|
namespace ConfigHelper |
63 |
|
{ |
64 |
|
std::map<std::string, std::string> ParseArguments(const std::string& args); |
65 |
|
int StringToInt(const std::string& input); |
66 |
|
} |
67 |
|
|
68 |
#endif |
#endif |
69 |
|
|