rcpp_framework/core/settings.h

24 lines
366 B
C
Raw Normal View History

2020-11-25 00:20:41 +01:00
#ifndef SETTINGS_H
#define SETTINGS_H
2020-12-08 16:22:18 +01:00
#include <string>
#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 std::string &path);
static Settings *get_singleton();
Settings(const bool singleton = false);
virtual ~Settings();
protected:
static Settings *_singleton;
2020-11-25 00:20:41 +01:00
};
#endif