12 #ifndef PX_REPX_SERIALIZER_H
13 #define PX_REPX_SERIALIZER_H
26 class XmlMemoryAllocator;
59 virtual const char* getTypeName() = 0;
89 template<
typename TDataType>
107 template<
typename TDataType>
110 return createRepXObject( inType, static_cast<PxSerialObjectId>( reinterpret_cast<size_t>( inType) ) );
116 #define PX_NEW_REPX_SERIALIZER(T) \
117 *PX_PLACEMENT_NEW(PxGetFoundation().getAllocatorCallback().allocate(sizeof(T), "PxRepXSerializer", __FILE__, __LINE__ ), T)(PxGetFoundation().getAllocatorCallback())
122 #define PX_DELETE_REPX_SERIALIZER(x) \
123 { PxRepXSerializer* s = x; if (s) { PxGetFoundation().getAllocatorCallback().deallocate(s); } }