Default PxSerializer implementation. More...
#include <PxSerializer.h>
Public Member Functions | |
Basics needed for Binary- and RepX-Serialization | |
PxSerializerDefaultAdapter (const char *name) | |
virtual const char * | getConcreteTypeName () const |
Returns string name of dynamic type. More... | |
virtual void | requires (PxBase &obj, PxProcessPxBaseCallback &c) const |
Adds required objects to the collection. More... | |
virtual bool | isSubordinate () const |
Whether the object is subordinate. More... | |
Functionality needed for Binary Serialization only | |
virtual void | exportExtraData (PxBase &obj, PxSerializationContext &s) const |
Exports object's extra data to stream. More... | |
virtual void | exportData (PxBase &obj, PxSerializationContext &s) const |
Exports object's data to stream. More... | |
virtual void | registerReferences (PxBase &obj, PxSerializationContext &s) const |
Register references that the object maintains to other objects. More... | |
virtual size_t | getClassSize () const |
Returns size needed to create the class instance. More... | |
virtual PxBase * | createObject (PxU8 *&address, PxDeserializationContext &context) const |
Create object at a given address, resolve references and import extra data. More... | |
Public Member Functions inherited from PxSerializer | |
virtual | ~PxSerializer () |
Private Attributes | |
const char * | mTypeName |
Default PxSerializer implementation.
|
inline |
|
inlinevirtual |
Create object at a given address, resolve references and import extra data.
address | Location at which object is created. Address is increased by the size of the created object. |
context | Context for reading external data and resolving references. |
Implements PxSerializer.
|
inlinevirtual |
Exports object's data to stream.
Implements PxSerializer.
References PxSerializationContext::writeData().
|
inlinevirtual |
Exports object's extra data to stream.
Implements PxSerializer.
|
inlinevirtual |
Returns size needed to create the class instance.
Implements PxSerializer.
|
inlinevirtual |
Returns string name of dynamic type.
Implements PxSerializer.
|
inlinevirtual |
Whether the object is subordinate.
A class is subordinate, if it can only be instantiated in the context of another class.
Implements PxSerializer.
|
inlinevirtual |
Register references that the object maintains to other objects.
Implements PxSerializer.
References PX_ASSERT, PX_SERIAL_REF_KIND_PXBASE, and PxSerializationContext::registerReference().
|
inlinevirtual |
Adds required objects to the collection.
This method does not add the required objects recursively, e.g. objects required by required objects.
Implements PxSerializer.
|
private |