#include <ConfigParser.h>

Public Member Functions

 ConfigParser (const std::string &configFilePath)
 
const std::vector< ConfigSet > & GetConfigSets () const
 

Private Member Functions

void ParseConfigFile (const std::string &configFile)
 
std::tuple< std::string, std::string > ParseKeyValue (const std::string &line)
 

Private Attributes

std::map< std::string, std::string > m_globalKeyValues
 
std::vector< ConfigSetm_configSets
 
bool m_parsingGlobalKeyValues = true
 

Constructor & Destructor Documentation

◆ ConfigParser()

ConfigParser::ConfigParser ( const std::string &  configFilePath)

Member Function Documentation

◆ GetConfigSets()

const std::vector<ConfigSet>& ConfigParser::GetConfigSets ( ) const
inline

◆ ParseConfigFile()

void ConfigParser::ParseConfigFile ( const std::string &  configFile)
private

◆ ParseKeyValue()

std::tuple< std::string, std::string > ConfigParser::ParseKeyValue ( const std::string &  line)
private

Member Data Documentation

◆ m_configSets

std::vector<ConfigSet> ConfigParser::m_configSets
private

◆ m_globalKeyValues

std::map<std::string, std::string> ConfigParser::m_globalKeyValues
private

◆ m_parsingGlobalKeyValues

bool ConfigParser::m_parsingGlobalKeyValues = true
private