2017-02-23 08:47:07 +00:00
|
|
|
#include <rapidjson/document.h>
|
|
|
|
#include <rapidjson/prettywriter.h>
|
|
|
|
|
|
|
|
struct IndexedFile;
|
|
|
|
using Writer = rapidjson::PrettyWriter<rapidjson::StringBuffer>;
|
2017-02-24 08:39:25 +00:00
|
|
|
using Reader = rapidjson::Document;
|
2017-02-23 08:47:07 +00:00
|
|
|
|
2017-02-28 08:37:20 +00:00
|
|
|
void Serialize(Writer& writer, IndexedFile* file);
|
2017-03-01 04:12:57 +00:00
|
|
|
void Deserialize(Reader& reader, IndexedFile* file);
|
|
|
|
|
|
|
|
std::string Serialize(IndexedFile* file);
|
|
|
|
IndexedFile Deserialize(std::string path, std::string serialized);
|