GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
List of all members
gd::Serializer Class Reference

The class used to save/load projects and GDCore classes from/to XML or JSON. More...

#include <Serializer.h>

Static Public Member Functions

XML serialization.

Convert a gd::SerializerElement from/to XML.

static void ToXML (SerializerElement &element, TiXmlElement *xmlElement)
 
static void FromXML (SerializerElement &element, const TiXmlElement *xmlElement)
 
static gd::String ToEscapedXMLString (const gd::String &str)
 Escape a string for inclusion in a XML tag.
 
JSON serialization.

Convert a gd::SerializerElement from/to JSON. This uses RapidJSON for fast parsing and stringification. See https://github.com/miloyip/nativejson-benchmark

static gd::String ToJSON (const SerializerElement &element)
 Serialize a gd::SerializerElement to a JSON string.
 
static SerializerElement FromJSON (const char *json)
 Construct a gd::SerializerElement from a JSON string.
 
static SerializerElement FromJSON (const gd::String &json)
 Construct a gd::SerializerElement from a JSON string.
 

Detailed Description

The class used to save/load projects and GDCore classes from/to XML or JSON.


The documentation for this class was generated from the following files: