implement options

This commit is contained in:
Eduardo Bart
2011-11-16 22:12:11 -02:00
parent b913381d2f
commit 69ae043001
6 changed files with 76 additions and 103 deletions

View File

@@ -31,6 +31,7 @@ public:
bool load(const std::string& file);
bool save();
bool exists(const std::string& key) { return m_confsMap.find(key) != m_confsMap.end(); }
void set(const std::string& key, const std::string& value) { m_confsMap[key] = value; }
std::string get(const std::string& key) { return m_confsMap[key]; }