8 #ifndef INCLUDE_WALLABY_CONFIG_HPP_
9 #define INCLUDE_WALLABY_CONFIG_HPP_
20 Config(
const std::map<std::string, std::string> &config);
22 static Config *load(
const std::string &path);
23 bool save(
const std::string &path)
const;
25 void beginGroup(
const std::string &group);
31 bool containsKey(
const std::string &key)
const;
33 bool boolValue(
const std::string &key)
const;
34 int intValue(
const std::string &key)
const;
35 double doubleValue(
const std::string &key)
const;
36 std::string stringValue(
const std::string &key)
const;
38 void setValue(
const std::string &key,
const bool &value);
39 void setValue(
const std::string &key,
const int &value);
40 void setValue(
const std::string &key,
const double &value);
41 void setValue(
const std::string &key,
const char *value);
42 void setValue(
const std::string &key,
const std::string &value);
45 void addValues(
const Config &config);
48 std::string safeKey(std::string key)
const;
49 std::string group()
const;
51 std::map<std::string, std::string> m_config;
52 std::vector<std::string> m_groups;
53 mutable std::string m_cachedGroup;
Definition: config.hpp:16
#define EXPORT_SYM
Definition: export.h:14