#include <rtti/jsonwriter.h>
◆ JSONWriter()
◆ finish()
Called when serialization is finished, after everything has been written (i.e. end of 'document')
Implements Writer.
◆ finishArray()
Called when an array has been completely written
Implements Writer.
◆ finishCompound()
Called when a compound has been completely written
Implements Writer.
◆ finishRootObject()
bool finishRootObject |
( |
| ) |
|
|
overridevirtual |
Called when a root object has been completely written
Implements Writer.
◆ GetJSON()
◆ start()
Called when serialization starts, but before any objects have been written (i.e. start of 'document')
- Parameters
-
rootObjects | The list of root objects that will be written to this writer |
Implements Writer.
◆ startArray()
bool startArray |
( |
int |
length | ) |
|
|
overridevirtual |
Called when an array of the specified length is about to be written. Note that the elements are written in a separate call (writePointer or writePrimitive)
Implements Writer.
◆ startCompound()
Called when a compound (i.e. struct nested inside a root object) of the specified type is about to be written
Implements Writer.
◆ startRootObject()
Called when a root object of the specified type is about to be written
Implements Writer.
◆ supportsEmbeddedPointers()
bool supportsEmbeddedPointers |
( |
| ) |
const |
|
overridevirtual |
Called to determine if this writer supports writing pointers nested in the object pointing to them (embedded pointers)
Implements Writer.
◆ writePointer()
bool writePointer |
( |
const std::string & |
pointeeID | ) |
|
|
overridevirtual |
Called to write a pointer to an object with the specified ID
Implements Writer.
◆ writePrimitive()
Called to write a primitive type with the specified value
Implements Writer.
◆ writeProperty()
bool writeProperty |
( |
const std::string & |
propertyName | ) |
|
|
overridevirtual |
Called to write a property of the specified name. Note that the value for the property is written in a separate call (writePointer or writePrimitive)
Implements Writer.