From d8c3333e7a7330c10bb96e426482e2b158011251 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 3 Apr 2020 13:54:08 +0200 Subject: Added configuration file (WIP) --- config.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 config.h (limited to 'config.h') diff --git a/config.h b/config.h new file mode 100644 index 0000000..b1f17a3 --- /dev/null +++ b/config.h @@ -0,0 +1,21 @@ +#pragma once + +#include + +class Config +{ + const std::string default_filename{"/etc/webserver.conf"}; + + void readConfigfile(std::string filename); + + std::string m_user; + std::string m_group; + + public: + Config(const std::string& filename); + + // Data getters + std::string User() const; + std::string Group() const; +}; + -- cgit v1.2.3