|
RavEngine
|
Serializer interface for RepX (Xml) serialization. More...
#include <PxRepXSerializer.h>
Public Member Functions | |
| virtual const char * | getTypeName ()=0 |
| The type this Serializer is meant to operate on. | |
| virtual void | objectToFile (const PxRepXObject &inLiveObject, PxCollection *inCollection, XmlWriter &inWriter, MemoryBuffer &inTempBuffer, PxRepXInstantiationArgs &inArgs)=0 |
| Convert from a RepX object to a key-value pair hierarchy. | |
| virtual PxRepXObject | fileToObject (XmlReader &inReader, XmlMemoryAllocator &inAllocator, PxRepXInstantiationArgs &inArgs, PxCollection *inCollection)=0 |
| Convert from a descriptor to a live object. Must be an object of this Serializer type. | |
Serializer interface for RepX (Xml) serialization.
In order to serialize a class to RepX both a PxSerializer and a PxRepXSerializer implementation are needed.
A repx Serializer provides the ability to capture a live object to a descriptor or static state and the ability to write that state out to a file. Objects allocated by the Serializer using the allocator are freed when the collection itself is freed. SnRepXCoreSerializers.cpp implements a set of Serializers for the core PhysX types.
|
pure virtual |
Convert from a descriptor to a live object. Must be an object of this Serializer type.
| [in] | inReader | The inverse of the writer, a key-value pair database. |
| [in] | inAllocator | An allocator to use for temporary allocations. These will be freed after instantiation completes. |
| [in] | inArgs | The arguments used in create resources and objects. |
| [in] | inCollection | The collection used to find references. |
Implemented in physx::PxShapeRepXSerializer, physx::PxBVH33TriangleMeshRepXSerializer, physx::PxBVH34TriangleMeshRepXSerializer, physx::PxHeightFieldRepXSerializer, physx::PxConvexMeshRepXSerializer, physx::PxAggregateRepXSerializer, physx::PxJointRepXSerializer< TJointType >, physx::RepXSerializerImpl< TLiveType >, physx::RepXSerializerImpl< PxAggregate >, physx::RepXSerializerImpl< PxArticulationReducedCoordinate >, physx::RepXSerializerImpl< PxBVH33TriangleMesh >, physx::RepXSerializerImpl< PxBVH34TriangleMesh >, physx::RepXSerializerImpl< PxConvexMesh >, physx::RepXSerializerImpl< PxHeightField >, physx::RepXSerializerImpl< PxMaterial >, physx::RepXSerializerImpl< PxRigidDynamic >, physx::RepXSerializerImpl< PxRigidStatic >, physx::RepXSerializerImpl< PxShape >, physx::RepXSerializerImpl< TJointType >, physx::RepXSerializerImpl< TVehicleType >, and physx::PxVehicleRepXSerializer< TVehicleType >.
|
pure virtual |
The type this Serializer is meant to operate on.
Implemented in physx::RepXSerializerImpl< TLiveType >, physx::RepXSerializerImpl< PxAggregate >, physx::RepXSerializerImpl< PxArticulationReducedCoordinate >, physx::RepXSerializerImpl< PxBVH33TriangleMesh >, physx::RepXSerializerImpl< PxBVH34TriangleMesh >, physx::RepXSerializerImpl< PxConvexMesh >, physx::RepXSerializerImpl< PxHeightField >, physx::RepXSerializerImpl< PxMaterial >, physx::RepXSerializerImpl< PxRigidDynamic >, physx::RepXSerializerImpl< PxRigidStatic >, physx::RepXSerializerImpl< PxShape >, physx::RepXSerializerImpl< TJointType >, and physx::RepXSerializerImpl< TVehicleType >.
|
pure virtual |
Convert from a RepX object to a key-value pair hierarchy.
| [in] | inLiveObject | The object to convert to the passed in descriptor. |
| [in] | inCollection | The collection to use to find ids of references of this object. |
| [in] | inWriter | Interface to write data to. |
| [in] | inTempBuffer | used to for temporary allocations. |
| [in] | inArgs | The arguments used in create resources and objects. |
Implemented in physx::RepXSerializerImpl< TLiveType >, physx::RepXSerializerImpl< PxAggregate >, physx::RepXSerializerImpl< PxArticulationReducedCoordinate >, physx::RepXSerializerImpl< PxBVH33TriangleMesh >, physx::RepXSerializerImpl< PxBVH34TriangleMesh >, physx::RepXSerializerImpl< PxConvexMesh >, physx::RepXSerializerImpl< PxHeightField >, physx::RepXSerializerImpl< PxMaterial >, physx::RepXSerializerImpl< PxRigidDynamic >, physx::RepXSerializerImpl< PxRigidStatic >, physx::RepXSerializerImpl< PxShape >, physx::RepXSerializerImpl< TJointType >, and physx::RepXSerializerImpl< TVehicleType >.