summaryrefslogtreecommitdiffhomepage
path: root/config.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-12-30 15:07:39 +0100
committerRoland Reichwein <mail@reichwein.it>2022-12-30 15:07:39 +0100
commitaf1c4ee4d74ff7afc997372802d851d11daad418 (patch)
tree745761113c41ccbe6ea37119b51b609a219882c9 /config.h
parent3f3d579c6a6f9a1a31278221f85b3194e3b6c5f4 (diff)
Added tests, added sqlite-backed storage (WIP!)
Diffstat (limited to 'config.h')
-rw-r--r--config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/config.h b/config.h
index 523b54d..ab95dd5 100644
--- a/config.h
+++ b/config.h
@@ -1,11 +1,15 @@
+#pragma once
+
#include <string>
+const std::string default_config_filename{"/etc/whiteboard.conf"};
+
class Config
{
private:
std::string m_dataPath;
public:
- Config();
- std::string getDataPath();
+ Config(const std::string& config_filename = default_config_filename);
+ std::string getDataPath() const;
};