1 #ifndef _KIPR_CONFIG_CONFIG_HPP_
2 #define _KIPR_CONFIG_CONFIG_HPP_
17 Config(
const std::map<std::string, std::string> &config);
20 bool save(
const std::string &path)
const;
35 void setValue(
const std::string &key,
const bool &value);
36 void setValue(
const std::string &key,
const int &value);
37 void setValue(
const std::string &key,
const double &value);
38 void setValue(
const std::string &key,
const char *value);
39 void setValue(
const std::string &key,
const std::string &value);
45 std::string safeKey(std::string key)
const;
46 std::string group()
const;
48 std::map<std::string, std::string> m_config;
49 std::vector<std::string> m_groups;
50 mutable std::string m_cachedGroup;
Definition: config.hpp:14
void addValues(const Config &config)
std::string stringValue(const std::string &key) const
double doubleValue(const std::string &key) const
void setValue(const std::string &key, const int &value)
void setValue(const std::string &key, const char *value)
void setValue(const std::string &key, const double &value)
static Config * load(const std::string &path)
Config(const std::map< std::string, std::string > &config)
bool save(const std::string &path) const
bool boolValue(const std::string &key) const
void setValue(const std::string &key, const bool &value)
bool containsKey(const std::string &key) const
int intValue(const std::string &key) const
void setValue(const std::string &key, const std::string &value)
void beginGroup(const std::string &group)
#define EXPORT_SYM
Definition: export.h:7