Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Engine
JSONHelper
JSONHelper.hpp
Go to the documentation of this file.
1
#ifndef f6d15177_9675_4c62_8588_b72848b55add_HPP
2
#define f6d15177_9675_4c62_8588_b72848b55add_HPP
3
4
#pragma once
5
6
#include <string>
7
8
#include <rapidjson/document.h>
9
#include <rapidjson/stringbuffer.h>
10
11
#include "../api.hpp"
12
#include <vector>
13
14
namespace
Common
15
{
16
class
RTS_COMMON_API
JsonHelper
17
{
18
public
:
20
static
rapidjson::Document OpenJSON(std::string
const
&filePath);
21
22
static
rapidjson::Document WriteToJson(std::string
const
filePath, rapidjson::Document& document,
bool
destroyOldJson =
false
);
23
24
static
void
MergeDocuments(rapidjson::Document& originalDocument, rapidjson::Document& documentToAdd,
bool
overwriteValues =
true
);
25
26
private
:
27
friend
class
FileSystem;
28
friend
class
FlatFileSystem;
29
};
30
}
31
32
#endif // f6d15177_9675_4c62_8588_b72848b55add_HPP
Common
Definition:
JSONHelper.cpp:8
Common::JsonHelper
Definition:
JSONHelper.hpp:16
Generated by
1.8.11