12 void SetKeyValues(
const std::map<std::string, std::string>& keyValues);
13 void AddKeyValue(
const std::string& key,
const std::string& value);
14 const std::map<std::string, std::string>&
GetKeyValues()
const {
return m_keyValues; }
16 bool HasKey(
const std::string& key)
const;
17 std::string GetValue(
const std::string& key)
const;
28 ConfigParser(
const std::string& configFilePath,
bool splitGroups);
30 const std::vector<ConfigSet>&
GetConfigSets()
const {
return m_configSets; }
32 static ConfigSet* FileToConfigSet(
const std::string& file);
35 void ParseConfigFile(
const std::string& configFile,
bool splitGroups =
true);
36 std::tuple<std::string, std::string> ParseKeyValue(
const std::string& line);
41 bool m_parsingGlobalKeyValues =
true;
Definition: ConfigParser.h:24
std::vector< ConfigSet > m_configSets
Definition: ConfigParser.h:39
const std::vector< ConfigSet > & GetConfigSets() const
Definition: ConfigParser.h:30
std::map< std::string, std::string > m_globalKeyValues
Definition: ConfigParser.h:38
Definition: ConfigParser.h:10
const std::map< std::string, std::string > & GetKeyValues() const
Definition: ConfigParser.h:14
std::map< std::string, std::string > m_keyValues
Definition: ConfigParser.h:20