summaryrefslogtreecommitdiff
path: root/src/config.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.hh')
-rw-r--r--src/config.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.hh b/src/config.hh
index 5262e91..011e890 100644
--- a/src/config.hh
+++ b/src/config.hh
@@ -24,6 +24,10 @@ public:
virtual bool is_set(std::string const& key) = 0;
virtual void set(std::string const& key, std::string const& value) = 0;
+ virtual void set(std::string const& key, bool value) {
+ set(key, std::string(value ? "true" : "false"));
+ }
+ virtual void remove(std::string const& key) = 0;
protected:
Config() { }