First Commit

Doing Network, in Developement
This commit is contained in:
2021-12-15 21:59:17 +01:00
commit 9e418f9193
9 changed files with 243 additions and 0 deletions

26
Config.hpp Normal file
View File

@@ -0,0 +1,26 @@
#include <map>
#include <string>
#include <fstream>
#ifndef CONFIG_H
#define CONFIG_H
class Config
{
private:
std::map<std::string, std::string> config_map;
std::ifstream config_file;
public:
Config(const char* filename);
void loadConfig();
void setConfFile(const char* filename);
void printConfig();
std::string getValue(std::string key);
};
#endif /* CONFIG_H */