rcpp_framework/core/settings.h

24 lines
368 B
C
Raw Normal View History

2020-11-25 00:20:41 +01:00
#ifndef SETTINGS_H
#define SETTINGS_H
#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;
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