#include <INIReader.h>
Public 成员函数 | |
INIReader (std::string filename) | |
~INIReader () | |
int | ParseError () |
std::string | Get (std::string section, std::string name, std::string default_value) |
long | GetInteger (std::string section, std::string name, long default_value) |
double | GetReal (std::string section, std::string name, double default_value) |
bool | GetBoolean (std::string section, std::string name, bool default_value) |
std::set< std::string > | GetSections () const |
std::set< std::string > | GetFields (std::string section) const |
静态 Private 成员函数 | |
static std::string | MakeKey (std::string section, std::string name) |
static int | ValueHandler (void *user, const char *section, const char *name, const char *value) |
Private 属性 | |
int | _error |
std::map< std::string, std::string > | _values |
std::set< std::string > | _sections |
std::map< std::string, std::set< std::string > * > | _fields |
INIReader::INIReader | ( | std::string | filename | ) |
INIReader::~INIReader | ( | ) |
string INIReader::Get | ( | std::string | section, |
std::string | name, | ||
std::string | default_value | ||
) |
bool INIReader::GetBoolean | ( | std::string | section, |
std::string | name, | ||
bool | default_value | ||
) |
std::set< std::string > INIReader::GetFields | ( | std::string | section | ) | const |
long INIReader::GetInteger | ( | std::string | section, |
std::string | name, | ||
long | default_value | ||
) |
double INIReader::GetReal | ( | std::string | section, |
std::string | name, | ||
double | default_value | ||
) |
std::set< std::string > INIReader::GetSections | ( | ) | const |
|
staticprivate |
int INIReader::ParseError | ( | ) |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |