Fully implement TOML config file, delete .idea folder

The new config is called "ServerConfig.toml" and uses the TOML library.
It's nice.
This commit is contained in:
Lion Kortlepel
2021-06-22 00:20:12 +02:00
committed by Lion
parent f626474b4f
commit 1abf6d5adf
8 changed files with 217 additions and 103 deletions

View File

@@ -2,14 +2,18 @@
#include "Common.h"
#include <atomic>
class TConfig {
public:
explicit TConfig(const std::string& ConfigFile);
explicit TConfig();
bool Failed() const { return mFailed; }
private:
static void ReadJson();
static void PrintDebug();
static void ManageJson();
static std::string RemoveComments(const std::string& Line);
static void SetValues(const std::string& Line, int Index);
void CreateConfigFile(std::string_view name);
void ParseFromFile(std::string_view name);
void PrintDebug();
bool mFailed { false };
};