LPCGame
A Simple 2d Game Engine
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
jsonhandler.h
1 #ifndef JSONHANDLER_H
2 #define JSONHANDLER_H
3 
4 #include <string>
5 #include "external/json/json.h"
6 
8 
11 class JsonHandler {
12 public:
19  JsonHandler(const std::string file);
20  JsonHandler();
21  ~JsonHandler();
28  Json::Value Read() const;
33  void Write(const Json::Value &data) const;
35  void SetFile(const std::string file);
37  std::string File() const;
38 
39 private:
45  bool JsonFile(const std::string &file) const;
46 
47 private:
49  std::string mFile;
50 };
51 
52 #endif