Initial commit

This commit is contained in:
2019-06-15 12:00:21 +02:00
commit eda5d9df6b
31 changed files with 1328 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#pragma once
#include <string>
class ServerConfiguration
{
private:
std::string wwwRoot;
std::string serverName;
int port;
bool isValid;
bool LoadFromFile(std::string const & filePath);
ServerConfiguration();
~ServerConfiguration() = default;
public:
int GetMajorVersion() const;
int GetMinorVersion() const;
std::string const & GetWwwRoot() const;
std::string const & GetServerName() const;
int GetPort() const;
bool IsValid() const;
static ServerConfiguration const & GetInstance();
ServerConfiguration(ServerConfiguration & other) = delete;
ServerConfiguration(ServerConfiguration && other) = delete;
};