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;
50 virtual int32_t getHazelcastTypeId()
const = 0;
114 std::auto_ptr<T> object(
new T);
116 return object.release();
120 write(out, *(static_cast<const T *>(
object)));
129 #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:119
Definition: Serializer.h:89
virtual void * read(ObjectDataInput &in)
This is an internal method for backward compatibility.
Definition: Serializer.h:113
Provides serialization methods for primitive types,a arrays of primitive types, Portable, IdentifiedDataSerializable and custom serializables.
Definition: ObjectDataOutput.h:54
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.
Definition: MapEntryView.h:32
Implement this interface and register to the SerializationConfig.
Definition: Serializer.h:64