MAJ pour upgrade pc backup

This commit is contained in:
Tom Ray
2026-06-21 21:53:29 +02:00
parent 650467054e
commit 82544a91ed
1219 changed files with 4319053 additions and 387 deletions
+11
View File
@@ -0,0 +1,11 @@
#include "Configuration.hpp"
namespace Setup {
ServerConfiguration Configuration::serverConfig;
void Configuration::init(std::string configuration)
{
//todo
}
}
+27
View File
@@ -0,0 +1,27 @@
#ifndef CONFIGURATION_HPP
#define CONFIGURATION_HPP
#include <string>
namespace Setup {
constexpr const char* getDefaultConfigurationPath() {return "configuration.json"; };
struct ServerConfiguration
{
unsigned int port = 5000;
std::string url = "0.0.0.0";
};
class Configuration
{
private:
static ServerConfiguration serverConfig;
public:
Configuration() = delete;
static const ServerConfiguration& server() {return serverConfig;};
static void init(std::string configuration = getDefaultConfigurationPath());
};
}
#endif