Implements a writer for UStruct serialization using Json. 更多...
#include <JsonStructSerializerBackend.h>
类 FJsonStructSerializerBackend 继承关系图:Public 成员函数 | |
| virtual void | BeginArray (const FStructSerializerState &State) override |
| Signals the beginning of an array. 更多... | |
| virtual void | BeginStructure (const FStructSerializerState &State) override |
| Signals the beginning of a child structure. 更多... | |
| virtual void | EndArray (const FStructSerializerState &State) override |
| Signals the end of an array. 更多... | |
| virtual void | EndStructure (const FStructSerializerState &State) override |
| Signals the end of an object. 更多... | |
| FJsonStructSerializerBackend (FArchive &InArchive) | |
| Creates and initializes a new legacy instance. 更多... | |
| FJsonStructSerializerBackend (FArchive &InArchive, const EStructSerializerBackendFlags InFlags) | |
| Creates and initializes a new instance with the given flags. 更多... | |
| virtual void | WriteComment (const FString &Comment) override |
| Writes a comment to the output stream. 更多... | |
| virtual void | WriteProperty (const FStructSerializerState &State, int32 ArrayIndex=0) override |
| Writes a property to the output stream. 更多... | |
Public 成员函数 继承自 IStructSerializerBackend | |
| virtual void | BeginArray (const FStructSerializerState &State)=0 |
| Signals the beginning of an array. 更多... | |
| virtual void | BeginStructure (const FStructSerializerState &State)=0 |
| Signals the beginning of a child structure. 更多... | |
| virtual void | EndArray (const FStructSerializerState &State)=0 |
| Signals the end of an array. 更多... | |
| virtual void | EndStructure (const FStructSerializerState &State)=0 |
| Signals the end of an object. 更多... | |
| virtual void | WriteComment (const FString &Comment)=0 |
| Writes a comment to the output stream. 更多... | |
| virtual void | WriteProperty (const FStructSerializerState &State, int32 ArrayIndex=0)=0 |
| Writes a property to the output stream. 更多... | |
| virtual | ~IStructSerializerBackend () |
| Virtual destructor. | |
Implements a writer for UStruct serialization using Json.
Note: The underlying Json serializer is currently hard-coded to use UCS2CHAR and pretty-print. This is because the current JsonWriter API does not allow writers to be substituted since it's all based on templates. At some point we will refactor the low-level Json API to provide more flexibility for serialization.
|
inline |
Creates and initializes a new legacy instance.
| InArchive | The archive to serialize into. |
|
inline |
Creates and initializes a new instance with the given flags.
| InArchive | The archive to serialize into. |
| InFlags | The flags that control the serialization behavior (typically EStructSerializerBackendFlags::Default). |
|
overridevirtual |
Signals the beginning of an array.
State.ValueProperty points to the property that holds the array.
| State | The serializer's current state. |
|
overridevirtual |
Signals the beginning of a child structure.
State.ValueProperty points to the property that holds the struct.
| State | The serializer's current state. |
|
overridevirtual |
Signals the end of an array.
State.ValueProperty points to the property that holds the array.
| State | The serializer's current state. |
|
overridevirtual |
Signals the end of an object.
State.ValueProperty points to the property that holds the struct.
| State | The serializer's current state. |
|
overridevirtual |
Writes a comment to the output stream.
| Comment | The comment text. |
|
overridevirtual |
Writes a property to the output stream.
Depending on the context, properties to be written can be either object properties or array elements.
State.KeyProperty points to the key property that holds the data to write. State.KeyData points to the key property's data. State.ValueProperty points to the property that holds the value to write. State.ValueData points to the actual data to write. State.TypeInfo contains the data's type information State.ArrayIndex is the optional index if the data is a value in an array.
| State | The serializer's current state. |