21 #ifndef HAZELCAST_ClassDefinitionBuilder
22 #define HAZELCAST_ClassDefinitionBuilder
24 #include "hazelcast/util/HazelcastDll.h"
25 #include "hazelcast/client/serialization/ClassDefinition.h"
29 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
31 #pragma warning(disable: 4251) //for dll export
36 namespace serialization {
83 ClassDefinitionBuilder& addPortableField(
const std::string& fieldName, boost::shared_ptr<ClassDefinition> def);
85 ClassDefinitionBuilder& addPortableArrayField(
const std::string& fieldName, boost::shared_ptr<ClassDefinition> def);
89 boost::shared_ptr<ClassDefinition> build();
103 std::vector<FieldDefinition> fieldDefinitions;
105 void addField(
const std::string& fieldName ,
FieldType const &fieldType);
113 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
117 #endif //HAZELCAST_ClassDefinitionBuilder
ClassDefinitionBuilder is used to build and register ClassDefinitions manually.
Definition: ClassDefinitionBuilder.h:45
Definition: FieldType.h:24
FieldDefinition defines name, type, index of a field.
Definition: FieldDefinition.h:47