21 #ifndef HAZELCAST_SerializationConfig
22 #define HAZELCAST_SerializationConfig
24 #include <boost/shared_ptr.hpp>
28 #include "hazelcast/util/HazelcastDll.h"
29 #include "hazelcast/client/serialization/Serializer.h"
30 #include "hazelcast/client/serialization/DataSerializableFactory.h"
31 #include "hazelcast/client/serialization/PortableFactory.h"
33 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
35 #pragma warning(disable: 4251) //for dll export
40 namespace serialization{
64 int getPortableVersion()
const;
77 std::vector<boost::shared_ptr<serialization::SerializerBase> >
const &getSerializers()
const;
87 SerializationConfig& registerSerializer(boost::shared_ptr<serialization::SerializerBase> serializer);
96 SerializationConfig& registerSerializer(boost::shared_ptr<serialization::StreamSerializer> serializer);
105 boost::shared_ptr<serialization::DataSerializableFactory> dataSerializableFactory);
114 addPortableFactory(int32_t factoryId, boost::shared_ptr<serialization::PortableFactory> portableFactory);
116 const std::map<int32_t, boost::shared_ptr<serialization::DataSerializableFactory> > &
117 getDataSerializableFactories()
const;
119 const std::map<int32_t, boost::shared_ptr<serialization::PortableFactory> > &getPortableFactories()
const;
128 setGlobalSerializer(
const boost::shared_ptr<serialization::StreamSerializer> &serializer);
134 const boost::shared_ptr<serialization::StreamSerializer> &getGlobalSerializer()
const;
138 std::vector<boost::shared_ptr<serialization::SerializerBase> > serializers;
139 std::map<int32_t, boost::shared_ptr<serialization::DataSerializableFactory> > dataSerializableFactories;
140 std::map<int32_t, boost::shared_ptr<serialization::PortableFactory> > portableFactories;
141 boost::shared_ptr<serialization::StreamSerializer> globalSerializer;
146 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
150 #endif //HAZELCAST_SerializationConfig
SerializationConfig is used to.
Definition: SerializationConfig.h:49
Definition: MapEntryView.h:32