2020-11-25 00:20:41 +01:00
|
|
|
#ifndef SETTINGS_H
|
|
|
|
#define SETTINGS_H
|
|
|
|
|
2021-11-01 19:53:35 +01:00
|
|
|
#include "core/string.h"
|
2020-12-08 16:22:18 +01:00
|
|
|
|
|
|
|
#include "rapidjson/document.h"
|
|
|
|
|
2020-11-25 00:20:41 +01:00
|
|
|
class Settings {
|
|
|
|
public:
|
2020-12-08 16:22:18 +01:00
|
|
|
rapidjson::Document settings;
|
|
|
|
|
2021-11-01 19:53:35 +01:00
|
|
|
void parse_file(const String &path);
|
2020-12-08 16:22:18 +01:00
|
|
|
|
|
|
|
static Settings *get_singleton();
|
|
|
|
|
|
|
|
Settings(const bool singleton = false);
|
|
|
|
virtual ~Settings();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static Settings *_singleton;
|
2020-11-25 00:20:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|