24 #ifndef HAZELCAST_CLASS_DEFINITION 25 #define HAZELCAST_CLASS_DEFINITION 28 #include "hazelcast/client/serialization/FieldDefinition.h" 32 #include <boost/shared_ptr.hpp> 35 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 37 #pragma warning(disable: 4251) //for dll export 42 namespace serialization {
83 bool hasField(
char const *fieldName)
const;
97 FieldType getFieldType(
const char *fieldName)
const;
102 int getFieldCount()
const;
107 int getFactoryId()
const;
112 int getClassId()
const;
117 int getVersion()
const;
123 void setVersionIfNotSet(
int version);
129 void writeData(pimpl::DataOutput& dataOutput);
135 void readData(pimpl::DataInput& dataInput);
141 friend std::ostream &operator<<(std::ostream &os,
const ClassDefinition &definition);
152 std::map<std::string, FieldDefinition> fieldDefinitionsMap;
154 std::auto_ptr<std::vector<byte> > binary;
161 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) Definition: FieldType.h:25
ClassDefinition defines a class schema for Portable classes.
Definition: ClassDefinition.h:57
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32
FieldDefinition defines name, type, index of a field.
Definition: FieldDefinition.h:48