Refactor: feedback from code review

Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
This commit is contained in:
Lucca Jiménez Könings
2024-05-21 13:38:37 +02:00
parent 67db9358e1
commit 84f5f95e54
10 changed files with 330 additions and 369 deletions

View File

@@ -19,7 +19,7 @@
#pragma once
#include "Common.h"
#include "TSettings.h"
#include "Settings.h"
#include <atomic>
#include <filesystem>
@@ -41,9 +41,6 @@ public:
private:
void CreateConfigFile();
void ParseFromFile(std::string_view name);
void TryReadValue(toml::value& Table, const std::string& Category, const std::string_view& Key, const std::string_view& Env, std::string& OutValue);
void TryReadValue(toml::value& Table, const std::string& Category, const std::string_view& Key, const std::string_view& Env, bool& OutValue);
void TryReadValue(toml::value& Table, const std::string& Category, const std::string_view& Key, const std::string_view& Env, int& OutValue);
void TryReadValue(toml::value& Table, const std::string& Category, const std::string_view& Key, const std::string_view& Env, Settings::Key key);
void ParseOldFormat();