19 #ifndef HAZELCAST_TYPE_SERIALIZER 20 #define HAZELCAST_TYPE_SERIALIZER 25 #include "hazelcast/util/HazelcastDll.h" 29 namespace serialization {
30 class ObjectDataOutput;
32 class ObjectDataInput;
51 virtual int32_t getHazelcastTypeId()
const = 0;
56 virtual void destroy();
121 std::auto_ptr<T> object(
new T);
123 return object.release();
127 write(out, *(static_cast<const T *>(
object)));
136 #endif //HAZELCAST_TYPE_SERIALIZER This is an internal class !!!! Do not use.
Definition: Serializer.h:37
virtual void write(ObjectDataOutput &out, const void *object)
This method writes object to ObjectDataOutput.
Definition: Serializer.h:126
Definition: Serializer.h:96
virtual void * read(ObjectDataInput &in)
This is an internal method for backward compatibility.
Definition: Serializer.h:120
Provides serialization methods for primitive types,a arrays of primitive types, Portable, IdentifiedDataSerializable and custom serializables.
Definition: ObjectDataOutput.h:53
virtual void read(ObjectDataInput &in, T &object)=0
Reads object from objectDataInputStream.
virtual void write(ObjectDataOutput &out, const T &object)=0
This method writes object to ObjectDataOutput.
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32
Implement this interface and register to the SerializationConfig.
Definition: Serializer.h:71