aboutsummaryrefslogtreecommitdiff
path: root/common/config-manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/config-manager.h')
-rw-r--r--common/config-manager.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/common/config-manager.h b/common/config-manager.h
index d43a7bec51..d79f647fe3 100644
--- a/common/config-manager.h
+++ b/common/config-manager.h
@@ -47,12 +47,31 @@ class ConfigManager : public Singleton<ConfigManager> {
public:
- class Domain : public StringMap {
+ class Domain {
private:
+ StringMap _entries;
StringMap _keyValueComments;
String _domainComment;
public:
+ typedef StringMap::const_iterator const_iterator;
+ const_iterator begin() const { return _entries.begin(); }
+ const_iterator end() const { return _entries.end(); }
+
+ bool empty() const { return _entries.empty(); }
+
+ bool contains(const String &key) const { return _entries.contains(key); }
+
+ String &operator[](const String &key) { return _entries[key]; }
+ const String &operator[](const String &key) const { return _entries[key]; }
+
+ String &getVal(const String &key) { return _entries.getVal(key); }
+ const String &getVal(const String &key) const { return _entries.getVal(key); }
+
+ void clear() { _entries.clear(); }
+
+ void erase(const String &key) { _entries.erase(key); }
+
void setDomainComment(const String &comment);
const String &getDomainComment() const;