diff options
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 <string> + +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; +}; + |