libwallaby  v24
The wallaby standard library
Config Class Reference

#include <config.hpp>

Public Member Functions

 Config ()
 
 Config (const std::map< std::string, std::string > &config)
 
bool save (const std::string &path) const
 
void beginGroup (const std::string &group)
 
void endGroup ()
 
void clearGroup ()
 
void clear ()
 
bool containsKey (const std::string &key) const
 
bool boolValue (const std::string &key) const
 
int intValue (const std::string &key) const
 
double doubleValue (const std::string &key) const
 
std::string stringValue (const std::string &key) const
 
void setValue (const std::string &key, const bool &value)
 
void setValue (const std::string &key, const int &value)
 
void setValue (const std::string &key, const double &value)
 
void setValue (const std::string &key, const char *value)
 
void setValue (const std::string &key, const std::string &value)
 
Config values () const
 
void addValues (const Config &config)
 

Static Public Member Functions

static Configload (const std::string &path)
 

Constructor & Destructor Documentation

◆ Config() [1/2]

Config::Config ( )

◆ Config() [2/2]

Config::Config ( const std::map< std::string, std::string > &  config)

Member Function Documentation

◆ addValues()

void Config::addValues ( const Config config)

◆ beginGroup()

void Config::beginGroup ( const std::string &  group)

◆ boolValue()

bool Config::boolValue ( const std::string &  key) const

◆ clear()

void Config::clear ( )

◆ clearGroup()

void Config::clearGroup ( )

◆ containsKey()

bool Config::containsKey ( const std::string &  key) const

◆ doubleValue()

double Config::doubleValue ( const std::string &  key) const

◆ endGroup()

void Config::endGroup ( )

◆ intValue()

int Config::intValue ( const std::string &  key) const

◆ load()

static Config* Config::load ( const std::string &  path)
static

◆ save()

bool Config::save ( const std::string &  path) const

◆ setValue() [1/5]

void Config::setValue ( const std::string &  key,
const bool &  value 
)

◆ setValue() [2/5]

void Config::setValue ( const std::string &  key,
const char *  value 
)

◆ setValue() [3/5]

void Config::setValue ( const std::string &  key,
const double &  value 
)

◆ setValue() [4/5]

void Config::setValue ( const std::string &  key,
const int &  value 
)

◆ setValue() [5/5]

void Config::setValue ( const std::string &  key,
const std::string &  value 
)

◆ stringValue()

std::string Config::stringValue ( const std::string &  key) const

◆ values()

Config Config::values ( ) const

The documentation for this class was generated from the following file: