3 #ifndef GEODE_PDXSERIALIZABLE_H_ 4 #define GEODE_PDXSERIALIZABLE_H_ 29 typedef PdxSerializable* (*PdxTypeFactoryMethod)();
34 virtual ~PdxSerializable();
52 virtual void toData(PdxWriterPtr output) = 0;
58 virtual void fromData(PdxReaderPtr input) = 0;
68 virtual int8_t typeId()
const;
71 virtual bool operator==(
const CacheableKey& other)
const;
74 virtual int32_t hashcode()
const;
79 virtual void toData(DataOutput& output)
const;
85 virtual Serializable* fromData(DataInput& input);
92 virtual int32_t classId()
const {
return 0x10; }
103 virtual CacheableStringPtr toString()
const;
108 virtual const char* getClassName()
const = 0;
114 #endif // GEODE_PDXSERIALIZABLE_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.