Tyro/src/settings/Config.h
2015-04-21 09:55:28 -04:00

25 lines
421 B
C++

#ifndef TYRO_CONFIG_H
#define TYRO_CONFIG_H
#include "../common.h"
#include "../../include/json/json.h"
typedef Json::Value JsonValue;
typedef Json::Reader JsonReader;
typedef Json::Writer JsonWriter;
class TyroConfig {
public:
TyroConfig();
~TyroConfig();
JsonValue GetRoot();
void LoadJson(const char json[]);
private:
JsonValue default_root;
JsonReader reader;
};
#endif /* TYRO_CONFIG_H */