21 lines
350 B
C
21 lines
350 B
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
#include <unordered_map>
|
||
|
|
||
|
using std::string;
|
||
|
using std::string_view;
|
||
|
|
||
|
namespace Feather
|
||
|
{
|
||
|
class ServerProperties
|
||
|
{
|
||
|
public:
|
||
|
ServerProperties(const char* path);
|
||
|
|
||
|
template <typename T>
|
||
|
T Get(string_view key);
|
||
|
private:
|
||
|
std::unordered_map<string, string> properties;
|
||
|
};
|
||
|
}
|