TurtleBrains  0.3.1
High quality, portable, C++ framework for rapid 2D game development.
tb_json_parser.h
1 
8 #ifndef _TurtleBrains_JsonParser_h_
9 #define _TurtleBrains_JsonParser_h_
10 
11 #include "../core/tb_string.h"
12 #include "../core/tb_dynamic_structure.h"
13 
14 #include <ostream>
15 
16 namespace TurtleBrains
17 {
18  namespace Core
19  {
20 
28  DynamicStructure ParseJson(const tbCore::tbString& jsonData);
29 
36  DynamicStructure LoadJsonFile(const tbCore::tbString& filepath);
37 
41  bool SaveJsonFile(const tbCore::tbString& filepath, const DynamicStructure& saveData);
42 
49 
65  tbCore::tbString GetChildFilepath(const tbCore::tbString& parentFilename, const tbCore::tbString& childFilename);
66 
67  }; /* namespace Core */
68 }; /* namespace TurtleBrains */
69 
70 namespace tbCore = TurtleBrains::Core;
71 
72 #endif /* _TurtleBrains_JsonParser_h_ */
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
tbCore::tbString GetChildFilepath(const tbCore::tbString &parentFilename, const tbCore::tbString &childFilename)
DynamicStructure ParseJson(const tbCore::tbString &jsonData)
tbCore::tbString GetPathFromFilepath(const tbCore::tbString &filepath)
DynamicStructure LoadJsonFile(const tbCore::tbString &filepath)
Contains core functionality for each component of the API.
Definition: tb_debug_logger.h:91
std::string tbString
Definition: tb_string.h:335
bool SaveJsonFile(const tbCore::tbString &filepath, const DynamicStructure &saveData)