| 33 | } |
| 34 | |
| 35 | string INIReader::Get(const string §ion, const string &name, const string &default_value) { |
| 36 | std::map<std::string, std::map<std::string, std::string> >::iterator f_section = _values.find(section); |
| 37 | if (f_section != _values.end()) { |
| 38 | std::map<std::string, std::string>::iterator f_name = f_section->second.find(name); |
| 39 | if (f_name != f_section->second.end()) { |
| 40 | return f_name->second; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | return default_value; |
| 45 | } |
| 46 | |
| 47 | long INIReader::GetInteger(const string §ion, const string &name, const long &default_value) { |
| 48 | string valstr = Get(section, name, ""); |