#include <rtti/binarywriter.h>
Public Member Functions | |
const std::vector< uint8_t > & | getBuffer () const |
bool | supportsEmbeddedPointers () const override |
bool | start (const ObjectList &rootObjects) override |
bool | finish () override |
bool | startRootObject (const rtti::TypeInfo &type) override |
bool | finishRootObject () override |
bool | startCompound (const rtti::TypeInfo &type) override |
bool | finishCompound () override |
bool | startArray (int length) override |
bool | finishArray () override |
bool | writeProperty (const std::string &propertyName) override |
bool | writePointer (const std::string &pointeeID) override |
bool | writePrimitive (const rtti::TypeInfo &type, const rtti::Variant &value) override |
|
overridevirtual |
Called when serialization is finished, after everything has been written (i.e. end of 'document')
Implements Writer.
|
overridevirtual |
Called when an array has been completely written
Implements Writer.
|
overridevirtual |
Called when a compound has been completely written
Implements Writer.
|
overridevirtual |
Called when a root object has been completely written
Implements Writer.
const std::vector<uint8_t>& getBuffer | ( | ) | const |
Get the buffer
|
overridevirtual |
Called when serialization starts, but before any objects have been written (i.e. start of 'document')
Implements Writer.
|
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.
|
overridevirtual |
Called when a compound (i.e. struct nested inside a root object) of the specified type is about to be written
Implements Writer.
|
overridevirtual |
Called when a root object of the specified type is about to be written
Implements Writer.
|
overridevirtual |
Called to determine if this writer supports writing pointers nested in the object pointing to them (embedded pointers)
Implements Writer.
|
overridevirtual |
Called to write a pointer to an object with the specified ID
Implements Writer.
|
overridevirtual |
Called to write a primitive type with the specified value
Implements Writer.
|
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.