54 string key =
MakeKey(section, name);
60 string valstr =
Get(section, name,
"");
61 const char* value = valstr.c_str();
64 long n = strtol(value, &end, 0);
65 return end > value ? n : default_value;
70 string key = section +
"." + name;
72 for (
unsigned int i = 0; i < key.length(); i++)
73 key[i] = tolower(key[i]);
INIReader(std::string filename)
static int ValueHandler(void *user, const char *section, const char *name, const char *value)
std::map< std::string, std::string > _values
int ini_parse(const char *filename, int(*handler)(void *, const char *, const char *, const char *), void *user)
long GetInteger(std::string section, std::string name, long default_value)
std::string Get(std::string section, std::string name, std::string default_value)
static std::string MakeKey(std::string section, std::string name)