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::Config ( )
Config::Config ( const std::map< std::string, std::string > &  config)

Member Function Documentation

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

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