20#ifndef GEODE_PDXSERIALIZABLE_H_
21#define GEODE_PDXSERIALIZABLE_H_
28#include "internal/geode_base.hpp"
Represents a cacheable key.
Definition CacheableKey.hpp:40
A PdxReader will be passed to PdxSerializable.fromData or during deserialization of a PDX.
Definition PdxReader.hpp:58
An interface for objects whose contents can be serialized as PDX types.
Definition PdxSerializable.hpp:41
std::string toString() const override
Display this object as 'string', which depends on the implementation in the subclasses.
virtual void toData(PdxWriter &output) const =0
Serialize this object in Geode PDX format.
virtual const std::string & getClassName() const =0
Get the Type for the Object.
int32_t hashcode() const override
return the hashcode for this key.
virtual void fromData(PdxReader &input)=0
Deserialize this object.
bool operator==(const CacheableKey &other) const override
return true if this key matches other.
A PdxWriter will be passed to PdxSerializable.toData when it is serializing the domain class.
Definition PdxWriter.hpp:41
This base class is the superclass of all user objects in the cache that can be serialized.
Definition Serializable.hpp:53