bool IniFile::Get(const std::string& sectionName, const std::string& key, std::vector<std::string>* values) { Section *section = GetSection(sectionName); if (!section) return false; return section->Get(key, values); }
bool IniFile::Get(const std::string& sectionName, const std::string& key, bool* value, bool defaultValue) { Section *section = GetSection(sectionName); if (!section) { *value = defaultValue; return false; } else { return section->Get(key, value, defaultValue); } }
bool IniFile::Get(const char* sectionName, const char* key, u32* value, u32 defaultValue) { Section *section = GetSection(sectionName); if (!section) { *value = defaultValue; return false; } else { return section->Get(key, value, defaultValue); } }
bool IniFile::Get(const std::string& sectionName, const std::string& key, std::string* value, const std::string& defaultValue) { Section* section = GetSection(sectionName); if (!section) { if (&defaultValue != &NULL_STRING) { *value = defaultValue; } return false; } return section->Get(key, value, defaultValue); }
bool IniFile::Get(const char* sectionName, const char* key, std::string* value, const char* defaultValue) { Section* section = GetSection(sectionName); if (!section) { if (defaultValue) { *value = defaultValue; } return false; } return section->Get(key, value, defaultValue); }