24 #ifndef HAZELCAST_CLASS_DEFINITION
25 #define HAZELCAST_CLASS_DEFINITION
28 #include "hazelcast/client/serialization/FieldDefinition.h"
32 #include <boost/shared_ptr.hpp>
34 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
36 #pragma warning(disable: 4251) //for dll export
41 namespace serialization {
82 bool hasField(
char const *fieldName)
const;
96 FieldType getFieldType(
const char *fieldName)
const;
101 int getFieldCount()
const;
106 int getFactoryId()
const;
111 int getClassId()
const;
116 int getVersion()
const;
122 void setVersionIfNotSet(
int version);
128 void writeData(pimpl::DataOutput& dataOutput);
134 void readData(pimpl::DataInput& dataInput);
145 std::vector<FieldDefinition> fieldDefinitions;
146 std::map<std::string, FieldDefinition> fieldDefinitionsMap;
148 std::auto_ptr<std::vector<byte> > binary;
155 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Definition: FieldType.h:24
ClassDefinition defines a class schema for Portable classes.
Definition: ClassDefinition.h:56
FieldDefinition defines name, type, index of a field.
Definition: FieldDefinition.h:47