mirror of
https://github.com/Relintai/rcpp_fw_static.git
synced 2024-11-20 21:37:18 +01:00
24 lines
366 B
C++
24 lines
366 B
C++
#ifndef SETTINGS_H
|
|
#define SETTINGS_H
|
|
|
|
#include <string>
|
|
|
|
#include "rapidjson/document.h"
|
|
|
|
class Settings {
|
|
public:
|
|
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;
|
|
};
|
|
|
|
|
|
#endif |