lua fixes

This commit is contained in:
Eduardo Bart
2012-01-06 22:46:41 -02:00
parent 3c62ce97db
commit 5d0d1432ed
5 changed files with 18 additions and 35 deletions

View File

@@ -31,10 +31,10 @@ public:
bool load(const std::string& file);
bool save();
bool exists(const std::string& key);
void set(const std::string& key, const std::string& value);
std::string get(const std::string& key);
void remove(const std::string& key);
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]; }
void remove(const std::string& key) { m_confsMap[key] = ""; }
private:
std::string m_fileName;