libkipr  1.0.0
kipr::config::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]

kipr::config::Config::Config ( )

◆ Config() [2/2]

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

Member Function Documentation

◆ addValues()

void kipr::config::Config::addValues ( const Config config)

◆ beginGroup()

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

◆ boolValue()

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

◆ clear()

void kipr::config::Config::clear ( )

◆ clearGroup()

void kipr::config::Config::clearGroup ( )

◆ containsKey()

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

◆ doubleValue()

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

◆ endGroup()

void kipr::config::Config::endGroup ( )

◆ intValue()

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

◆ load()

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

◆ save()

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

◆ setValue() [1/5]

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

◆ setValue() [2/5]

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

◆ setValue() [3/5]

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

◆ setValue() [4/5]

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

◆ setValue() [5/5]

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

◆ stringValue()

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

◆ values()

Config kipr::config::Config::values ( ) const

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