3 #ifndef GEODE_PDXSERIALIZER_H_ 4 #define GEODE_PDXSERIALIZER_H_ 24 #include "PdxReader.hpp" 25 #include "PdxWriter.hpp" 34 typedef void (*UserDeallocator)(
void*,
const char*);
40 typedef uint32_t (*UserObjectSizer)(
void*,
const char*);
55 virtual ~PdxSerializer() {}
63 virtual void* fromData(
const char* className, PdxReaderPtr pr) = 0;
70 virtual bool toData(
void* userObject,
const char* className,
77 virtual UserDeallocator getDeallocator(
const char* className) = 0;
84 virtual UserObjectSizer getObjectSizer(
const char* className) {
92 #endif // GEODE_PDXSERIALIZER_H_ Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
This namespace contains all the Geode C++ API classes, enumerations and globals.