Class serving as a registry for XML (RepX) and binary serializable types. More...
#include <PxSerialFramework.h>
Public Member Functions | |
virtual void | release ()=0 |
Releases PxSerializationRegistry instance. More... | |
Binary Serialization Functionality | |
virtual void | registerSerializer (PxType type, PxSerializer &serializer)=0 |
Register a serializer for a concrete type. More... | |
virtual PxSerializer * | unregisterSerializer (PxType type)=0 |
Unregister a serializer for a concrete type, and retrieves the corresponding serializer object. More... | |
virtual void | registerBinaryMetaDataCallback (PxBinaryMetaDataCallback callback)=0 |
Register binary meta data callback. More... | |
virtual const PxSerializer * | getSerializer (PxType type) const =0 |
Returns PxSerializer corresponding to type. More... | |
RepX (XML) Serialization Functionality | |
virtual void | registerRepXSerializer (PxType type, PxRepXSerializer &serializer)=0 |
Register a RepX serializer for a concrete type. More... | |
virtual PxRepXSerializer * | unregisterRepXSerializer (PxType type)=0 |
Unregister a RepX serializer for a concrete type, and retrieves the corresponding serializer object. More... | |
virtual PxRepXSerializer * | getRepXSerializer (const char *typeName) const =0 |
Returns RepX serializer given the corresponding type name. More... | |
Protected Member Functions | |
virtual | ~PxSerializationRegistry () |
Class serving as a registry for XML (RepX) and binary serializable types.
In order to serialize and deserialize objects the application needs to maintain an instance of this class. It can be created with PxSerialization::createSerializationRegistry() and released with PxSerializationRegistry::release().
|
inlineprotectedvirtual |
|
pure virtual |
Returns RepX serializer given the corresponding type name.
typeName | Name of the type |
|
pure virtual |
Returns PxSerializer corresponding to type.
type | PxConcreteType of the serializer requested. |
|
pure virtual |
Register binary meta data callback.
The callback is executed when calling PxSerialization::dumpBinaryMetaData.
callback | PxBinaryMetaDataCallback to be registered. |
|
pure virtual |
Register a RepX serializer for a concrete type.
type | PxConcreteType corresponding to the RepX serializer |
serializer | The PxRepXSerializer to be registered |
|
pure virtual |
Register a serializer for a concrete type.
type | PxConcreteType corresponding to the serializer |
serializer | The PxSerializer to be registered |
|
pure virtual |
Releases PxSerializationRegistry instance.
This unregisters all PhysX and PhysXExtension serializers. Make sure to unregister all custom type serializers before releasing the PxSerializationRegistry.
|
pure virtual |
Unregister a RepX serializer for a concrete type, and retrieves the corresponding serializer object.
type | PxConcreteType for which the RepX serializer should be unregistered |
|
pure virtual |
Unregister a serializer for a concrete type, and retrieves the corresponding serializer object.
type | PxConcreteType for which the serializer should be unregistered |