From af1c4ee4d74ff7afc997372802d851d11daad418 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 30 Dec 2022 15:07:39 +0100 Subject: Added tests, added sqlite-backed storage (WIP!) --- config.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config.h') 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 +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; }; -- cgit v1.2.3