A Deserializer that reads the serialized content from a JSON value.
More...
#include <CeresEngine/Serialization/JSONSerialization.hpp>
|
| const SerializationContext & | context |
| | A shared context that contains a context for the deserializer.
|
| |
| DeserializerState | state |
| | An object that stores context for the deserializer.
|
| |
| Object | beginObject (const SerializedObjectMetadata &metadata, Box &&existingObject={}) |
| | Notifies the deserializer that a new object is starting deserialization.
|
| |
| Box | endObject (Object &object) |
| | Notifies the deserializer that an object has ended deserialization.
|
| |
| Property | beginObjectProperty (const Object &object, const SerializedPropertyMetadata &metadata) |
| | Notifies the deserializer that a new property is starting deserialization.
|
| |
| void | endObjectProperty (Object &object, const Property &property, Box &&value) |
| | Notifies the deserializer that a property has ended deserialization.
|
| |
| Box | objectReference (SerializedObjectID referenceID) |
| | Notifies the deserializer that an object reference was deserialized.
|
| |
| Box | binary (InputStream &stream, Box &&existingObject) |
| | Decodes a binary input stream into a MetaValue object.
|
| |
| Array | beginArray (const SerializedArrayMetadata &metadata, Box &&existingObject={}) |
| | Notifies the deserializer that an array is starting deserialization.
|
| |
| void | arrayElement (const Array &array, Box &&value) |
| | Notifies the deserializer that an array element was deserialized.
|
| |
| Box | endArray (Array &array) |
| | Notifies the deserializer that an array has ended deserialization.
|
| |
| Map | beginMap (const SerializedMapMetadata &metadata, Box &&existingObject={}) |
| | Notifies the deserializer that a map is starting deserialization.
|
| |
| void | mapElement (const Map &map, Box &&key, Box &&value) |
| | Notifies the deserializer that a map element was deserialized.
|
| |
| Box | endMap (Map &map) |
| | Notifies the deserializer that a map has ended deserialization.
|
| |
A Deserializer that reads the serialized content from a JSON value.
◆ JSONDeserializer()
Creates a new JSON deserializer backed by an object.
- Parameters
-
| json | The JSON value to be deserialized. |
| context | A context for the deserializer to operate on. |
◆ ~JSONDeserializer()
| CeresEngine::JSONDeserializer::~JSONDeserializer |
( |
| ) |
|
|
overridenoexcept |
Destroys the JSON deserializer.
◆ decode() [1/2]
| Box CeresEngine::JSONDeserializer::decode |
( |
Box && |
existingObject = {} | ) |
|
|
finalvirtual |
◆ decode() [2/2]
| Box CeresEngine::JSONDeserializer::decode |
( |
const JSON & |
value, |
|
|
Box && |
existingObject = {} |
|
) |
| |
|
private |
◆ decodeArray()
| Box CeresEngine::JSONDeserializer::decodeArray |
( |
const JSON & |
array, |
|
|
Box && |
existingObject = {} |
|
) |
| |
|
private |
◆ decodeMap()
| Box CeresEngine::JSONDeserializer::decodeMap |
( |
const JSON & |
map, |
|
|
Box && |
existingObject = {} |
|
) |
| |
|
private |
◆ decodeNumber()
| Box CeresEngine::JSONDeserializer::decodeNumber |
( |
const JSON & |
value, |
|
|
Box && |
existingObject = {} |
|
) |
| |
|
private |
◆ decodeObject()
| Box CeresEngine::JSONDeserializer::decodeObject |
( |
const JSON & |
value, |
|
|
Box && |
existingObject = {} |
|
) |
| |
|
private |
◆ decodeObjectReference()
| Box CeresEngine::JSONDeserializer::decodeObjectReference |
( |
| ) |
|
|
private |
◆ decodeString()
| Box CeresEngine::JSONDeserializer::decodeString |
( |
const JSON & |
value, |
|
|
Box && |
existingObject = {} |
|
) |
| |
|
private |
◆ mValue
| JSON CeresEngine::JSONDeserializer::mValue |
|
private |
The JSON value for the deserializer.
The documentation for this class was generated from the following file: