1 #ifndef RHESUS_CONFIG_H_
2 #define RHESUS_CONFIG_H_
4 #include "../Defines.h"
10 #ifdef RHESUS_NO_THROW
11 #include "../error_val.hpp"
18 namespace Configuration
41 template<
typename T> T
Get(std::string section, std::string key);
47 template<
typename T> T
Get(std::string key);
55 void Set(std::string section, std::string key, std::string value);
62 void Set(std::string key, std::string value);
79 typedef std::hash_map<std::string, std::string> strMap;
80 typedef std::hash_map<std::string, strMap> configMap;
82 static std::string kDefaultSection;
84 bool SectionExists(std::string section);
85 bool KeyExists(std::string section, std::string key);
88 configMap m_configMap;
89 std::string m_defaultSection;
92 static std::string RemoveComments(std::string s);