23 #ifndef HAZELCAST_PortableReader 24 #define HAZELCAST_PortableReader 26 #include "hazelcast/util/HazelcastDll.h" 27 #include "hazelcast/client/serialization/pimpl/DefaultPortableReader.h" 28 #include "hazelcast/client/serialization/pimpl/MorphingPortableReader.h" 31 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 33 #pragma warning(disable: 4251) //for dll export 38 namespace serialization {
41 class PortableContext;
46 class ClassDefinition;
59 boost::shared_ptr<ClassDefinition> cd,
bool isDefaultReader);
70 int32_t readInt(
const char *fieldName);
77 int64_t readLong(
const char *fieldName);
84 bool readBoolean(
const char *fieldName);
91 byte readByte(
const char *fieldName);
98 char readChar(
const char *fieldName);
105 double readDouble(
const char *fieldName);
112 float readFloat(
const char *fieldName);
119 int16_t readShort(
const char *fieldName);
126 std::auto_ptr<std::string> readUTF(
const char *fieldName);
133 std::auto_ptr<std::vector<byte> > readByteArray(
const char *fieldName);
140 std::auto_ptr<std::vector<bool> > readBooleanArray(
const char *fieldName);
147 std::auto_ptr<std::vector<char> > readCharArray(
const char *fieldName);
154 std::auto_ptr<std::vector<int32_t> > readIntArray(
const char *fieldName);
161 std::auto_ptr<std::vector<int64_t> > readLongArray(
const char *fieldName);
168 std::auto_ptr<std::vector<double> > readDoubleArray(
const char *fieldName);
175 std::auto_ptr<std::vector<float> > readFloatArray(
const char *fieldName);
182 std::auto_ptr<std::vector<int16_t> > readShortArray(
const char *fieldName);
193 return defaultPortableReader->readPortable<T>(fieldName);
194 return morphingPortableReader->readPortable<T>(fieldName);
206 return defaultPortableReader->readPortableArray<T>(fieldName);
207 return morphingPortableReader->readPortableArray<T>(fieldName);
227 bool isDefaultReader;
228 mutable std::auto_ptr<pimpl::DefaultPortableReader> defaultPortableReader;
229 mutable std::auto_ptr<pimpl::MorphingPortableReader> morphingPortableReader;
236 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 240 #endif //HAZELCAST_PortableReader std::vector< T > readPortableArray(const char *fieldName)
Definition: PortableReader.h:204
Provides a mean of reading portable fields from a binary in form of java primitives arrays of java pr...
Definition: PortableReader.h:52
boost::shared_ptr< T > readPortable(const char *fieldName)
Definition: PortableReader.h:191
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32