summaryrefslogtreecommitdiffhomepage
path: root/config.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-03 13:54:08 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-03 13:54:08 +0200
commitd8c3333e7a7330c10bb96e426482e2b158011251 (patch)
tree761dbe37aa3da1900826ffc8db6d89ecdea96927 /config.h
parente60bb89a6d1392c0007a1fbc03faf007faf76167 (diff)
Added configuration file (WIP)
Diffstat (limited to 'config.h')
-rw-r--r--config.h21
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;
+};
+