diff options
Diffstat (limited to 'common/config-manager.h')
-rw-r--r-- | common/config-manager.h | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/common/config-manager.h b/common/config-manager.h index 3a54ccfb64..7f01ad01e9 100644 --- a/common/config-manager.h +++ b/common/config-manager.h @@ -54,26 +54,16 @@ public: private: StringMap _keyValueComments; String _domainComment; + public: + const String &get(const String &key) const; + + void setDomainComment(const String &comment); + const String &getDomainComment() const; - const String &get(const String &key) const { - Node *node = findNode(_root, key); - return node ? node->_value : String::emptyString; - } - - void setDomainComment(const String &comment) { - _domainComment = comment; - } - const String &getDomainComment() const { - return _domainComment; - } - - void setKVComment(const String &key, const String &comment) { - _keyValueComments[key] = comment; - } - const String &getKVComment(const String &key) const { - return _keyValueComments[key]; - } + void setKVComment(const String &key, const String &comment); + const String &getKVComment(const String &key) const; + bool hasKVComment(const String &key) const; }; typedef Map<String, Domain, IgnoreCaseComparator> DomainMap; |