#include <ConfigParser.h>

Public Member Functions

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

Static Public Member Functions

static ConfigSetFileToConfigSet (const std::string &file)
 

Private Member Functions

void ParseConfigFile (const std::string &configFile, bool splitGroups=true)
 
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() [1/2]

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

◆ ConfigParser() [2/2]

ConfigParser::ConfigParser ( const std::string &  configFilePath,
bool  splitGroups 
)

Member Function Documentation

◆ FileToConfigSet()

ConfigSet * ConfigParser::FileToConfigSet ( const std::string &  file)
static

◆ GetConfigSets()

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

◆ ParseConfigFile()

void ConfigParser::ParseConfigFile ( const std::string &  configFile,
bool  splitGroups = true 
)
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

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.