Fast RTPS  Version 2.14.1
Fast RTPS
Loading...
Searching...
No Matches
DynamicTypeBuilderFactory Class Reference

#include <DynamicTypeBuilderFactory.h>

Public Member Functions

 ~DynamicTypeBuilderFactory ()
 
RTPS_DllAPI DynamicType_ptr get_primitive_type (TypeKind kind)
 
RTPS_DllAPI ReturnCode_t delete_builder (DynamicTypeBuilder *builder)
 
RTPS_DllAPI ReturnCode_t delete_type (DynamicType *type)
 
RTPS_DllAPI DynamicTypeBuildercreate_custom_builder (const TypeDescriptor *descriptor, const std::string &name="")
 
RTPS_DllAPI DynamicTypeBuildercreate_builder_copy (const DynamicTypeBuilder *type)
 
RTPS_DllAPI DynamicTypeBuildercreate_int32_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_uint32_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_int16_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_uint16_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_int64_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_uint64_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_float32_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_float64_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_float128_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_char8_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_char16_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_bool_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_byte_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_string_builder (uint32_t bound=MAX_STRING_LENGTH)
 
RTPS_DllAPI DynamicTypeBuildercreate_wstring_builder (uint32_t bound=MAX_STRING_LENGTH)
 
RTPS_DllAPI DynamicTypeBuildercreate_sequence_builder (const DynamicTypeBuilder *element_type, uint32_t bound=MAX_ELEMENTS_COUNT)
 
RTPS_DllAPI DynamicTypeBuildercreate_sequence_builder (const DynamicType_ptr type, uint32_t bound=MAX_ELEMENTS_COUNT)
 
RTPS_DllAPI DynamicTypeBuildercreate_array_builder (const DynamicTypeBuilder *element_type, const std::vector< uint32_t > &bounds)
 
RTPS_DllAPI DynamicTypeBuildercreate_array_builder (const DynamicType_ptr type, const std::vector< uint32_t > &bounds)
 
RTPS_DllAPI DynamicTypeBuildercreate_map_builder (DynamicTypeBuilder *key_element_type, DynamicTypeBuilder *element_type, uint32_t bound=MAX_ELEMENTS_COUNT)
 
RTPS_DllAPI DynamicTypeBuildercreate_map_builder (DynamicType_ptr key_type, DynamicType_ptr value_type, uint32_t bound=MAX_ELEMENTS_COUNT)
 
RTPS_DllAPI DynamicTypeBuildercreate_bitmask_builder (uint32_t bound)
 
RTPS_DllAPI DynamicTypeBuildercreate_bitset_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_alias_builder (DynamicTypeBuilder *base_type, const std::string &sName)
 
RTPS_DllAPI DynamicTypeBuildercreate_alias_builder (DynamicType_ptr base_type, const std::string &sName)
 
RTPS_DllAPI DynamicTypeBuildercreate_enum_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_struct_builder ()
 
RTPS_DllAPI DynamicTypeBuildercreate_child_struct_builder (DynamicTypeBuilder *parent_type)
 
RTPS_DllAPI DynamicTypeBuildercreate_union_builder (DynamicTypeBuilder *discriminator_type)
 
RTPS_DllAPI DynamicTypeBuildercreate_union_builder (DynamicType_ptr discriminator_type)
 
RTPS_DllAPI DynamicType_ptr create_annotation_primitive (const std::string &name)
 
RTPS_DllAPI DynamicType_ptr create_type (const TypeDescriptor *descriptor, const std::string &name="")
 
RTPS_DllAPI DynamicType_ptr create_type (const DynamicTypeBuilder *other)
 
RTPS_DllAPI DynamicType_ptr create_alias_type (DynamicTypeBuilder *base_type, const std::string &sName)
 
RTPS_DllAPI DynamicType_ptr create_alias_type (DynamicType_ptr base_type, const std::string &sName)
 
RTPS_DllAPI DynamicType_ptr create_int32_type ()
 
RTPS_DllAPI DynamicType_ptr create_uint32_type ()
 
RTPS_DllAPI DynamicType_ptr create_int16_type ()
 
RTPS_DllAPI DynamicType_ptr create_uint16_type ()
 
RTPS_DllAPI DynamicType_ptr create_int64_type ()
 
RTPS_DllAPI DynamicType_ptr create_uint64_type ()
 
RTPS_DllAPI DynamicType_ptr create_float32_type ()
 
RTPS_DllAPI DynamicType_ptr create_float64_type ()
 
RTPS_DllAPI DynamicType_ptr create_float128_type ()
 
RTPS_DllAPI DynamicType_ptr create_char8_type ()
 
RTPS_DllAPI DynamicType_ptr create_char16_type ()
 
RTPS_DllAPI DynamicType_ptr create_bool_type ()
 
RTPS_DllAPI DynamicType_ptr create_byte_type ()
 
RTPS_DllAPI DynamicType_ptr create_string_type (uint32_t bound=MAX_STRING_LENGTH)
 
RTPS_DllAPI DynamicType_ptr create_wstring_type (uint32_t bound=MAX_STRING_LENGTH)
 
RTPS_DllAPI DynamicType_ptr create_bitset_type (uint32_t bound)
 
RTPS_DllAPI void build_type_identifier (const DynamicType_ptr type, TypeIdentifier &identifier, bool complete=true) const
 
RTPS_DllAPI void build_type_identifier (const TypeDescriptor *descriptor, TypeIdentifier &identifier, bool complete=true) const
 
RTPS_DllAPI void build_type_object (const DynamicType_ptr type, TypeObject &object, bool complete=true, bool force=false) const
 
RTPS_DllAPI void build_type_object (const TypeDescriptor *descriptor, TypeObject &object, const std::vector< const MemberDescriptor * > *members=nullptr, bool complete=true, bool force=false) const
 
RTPS_DllAPI bool is_empty () const
 

Static Public Member Functions

static RTPS_DllAPI DynamicTypeBuilderFactoryget_instance ()
 
static RTPS_DllAPI ReturnCode_t delete_instance ()
 

Protected Member Functions

 DynamicTypeBuilderFactory ()
 
void add_builder_to_list (DynamicTypeBuilder *pBuilder)
 
DynamicType_ptr build_type (DynamicType_ptr other)
 
void build_alias_type_code (const TypeDescriptor *descriptor, TypeObject &object, bool complete=true) const
 
void build_string8_type_code (const TypeDescriptor *descriptor) const
 
void build_string16_type_code (const TypeDescriptor *descriptor) const
 
void build_sequence_type_code (const TypeDescriptor *descriptor, TypeObject &object, bool complete=true) const
 
void build_array_type_code (const TypeDescriptor *descriptor, TypeObject &object, bool complete=true) const
 
void build_map_type_code (const TypeDescriptor *descriptor, TypeObject &object, bool complete=true) const
 
void build_enum_type_code (const TypeDescriptor *descriptor, TypeObject &object, const std::vector< const MemberDescriptor * > members, bool complete=true) const
 
void build_struct_type_code (const TypeDescriptor *descriptor, TypeObject &object, const std::vector< const MemberDescriptor * > members, bool complete=true) const
 
void build_union_type_code (const TypeDescriptor *descriptor, TypeObject &object, const std::vector< const MemberDescriptor * > members, bool complete=true) const
 
void build_bitset_type_code (const TypeDescriptor *descriptor, TypeObject &object, const std::vector< const MemberDescriptor * > members, bool complete=true) const
 
void build_bitmask_type_code (const TypeDescriptor *descriptor, TypeObject &object, const std::vector< const MemberDescriptor * > members, bool complete=true) const
 
void build_annotation_type_code (const TypeDescriptor *descriptor, TypeObject &object, const std::vector< const MemberDescriptor * > members, bool complete=true) const
 
void set_annotation_default_value (AnnotationParameterValue &apv, const MemberDescriptor *member) const
 
void apply_type_annotations (AppliedAnnotationSeq &annotations, const TypeDescriptor *descriptor) const
 

Protected Attributes

std::vector< DynamicTypeBuilder * > builders_list_
 
std::recursive_mutex mutex_
 

Constructor & Destructor Documentation

◆ DynamicTypeBuilderFactory()

◆ ~DynamicTypeBuilderFactory()

Member Function Documentation

◆ add_builder_to_list()

void add_builder_to_list ( DynamicTypeBuilder pBuilder)
inlineprotected

◆ apply_type_annotations()

void apply_type_annotations ( AppliedAnnotationSeq annotations,
const TypeDescriptor descriptor 
) const
protected

◆ build_alias_type_code()

void build_alias_type_code ( const TypeDescriptor descriptor,
TypeObject object,
bool  complete = true 
) const
protected

◆ build_annotation_type_code()

void build_annotation_type_code ( const TypeDescriptor descriptor,
TypeObject object,
const std::vector< const MemberDescriptor * >  members,
bool  complete = true 
) const
protected

◆ build_array_type_code()

void build_array_type_code ( const TypeDescriptor descriptor,
TypeObject object,
bool  complete = true 
) const
protected

◆ build_bitmask_type_code()

void build_bitmask_type_code ( const TypeDescriptor descriptor,
TypeObject object,
const std::vector< const MemberDescriptor * >  members,
bool  complete = true 
) const
protected

◆ build_bitset_type_code()

void build_bitset_type_code ( const TypeDescriptor descriptor,
TypeObject object,
const std::vector< const MemberDescriptor * >  members,
bool  complete = true 
) const
protected

◆ build_enum_type_code()

void build_enum_type_code ( const TypeDescriptor descriptor,
TypeObject object,
const std::vector< const MemberDescriptor * >  members,
bool  complete = true 
) const
protected

◆ build_map_type_code()

void build_map_type_code ( const TypeDescriptor descriptor,
TypeObject object,
bool  complete = true 
) const
protected

◆ build_sequence_type_code()

void build_sequence_type_code ( const TypeDescriptor descriptor,
TypeObject object,
bool  complete = true 
) const
protected

◆ build_string16_type_code()

void build_string16_type_code ( const TypeDescriptor descriptor) const
protected

◆ build_string8_type_code()

void build_string8_type_code ( const TypeDescriptor descriptor) const
protected

◆ build_struct_type_code()

void build_struct_type_code ( const TypeDescriptor descriptor,
TypeObject object,
const std::vector< const MemberDescriptor * >  members,
bool  complete = true 
) const
protected

◆ build_type()

DynamicType_ptr build_type ( DynamicType_ptr  other)
protected

◆ build_type_identifier() [1/2]

RTPS_DllAPI void build_type_identifier ( const DynamicType_ptr  type,
TypeIdentifier identifier,
bool  complete = true 
) const

◆ build_type_identifier() [2/2]

RTPS_DllAPI void build_type_identifier ( const TypeDescriptor descriptor,
TypeIdentifier identifier,
bool  complete = true 
) const

◆ build_type_object() [1/2]

RTPS_DllAPI void build_type_object ( const DynamicType_ptr  type,
TypeObject object,
bool  complete = true,
bool  force = false 
) const

◆ build_type_object() [2/2]

RTPS_DllAPI void build_type_object ( const TypeDescriptor descriptor,
TypeObject object,
const std::vector< const MemberDescriptor * > *  members = nullptr,
bool  complete = true,
bool  force = false 
) const

◆ build_union_type_code()

void build_union_type_code ( const TypeDescriptor descriptor,
TypeObject object,
const std::vector< const MemberDescriptor * >  members,
bool  complete = true 
) const
protected

◆ create_alias_builder() [1/2]

RTPS_DllAPI DynamicTypeBuilder * create_alias_builder ( DynamicType_ptr  base_type,
const std::string &  sName 
)

◆ create_alias_builder() [2/2]

RTPS_DllAPI DynamicTypeBuilder * create_alias_builder ( DynamicTypeBuilder base_type,
const std::string &  sName 
)

◆ create_alias_type() [1/2]

RTPS_DllAPI DynamicType_ptr create_alias_type ( DynamicType_ptr  base_type,
const std::string &  sName 
)

◆ create_alias_type() [2/2]

RTPS_DllAPI DynamicType_ptr create_alias_type ( DynamicTypeBuilder base_type,
const std::string &  sName 
)

◆ create_annotation_primitive()

RTPS_DllAPI DynamicType_ptr create_annotation_primitive ( const std::string &  name)

◆ create_array_builder() [1/2]

RTPS_DllAPI DynamicTypeBuilder * create_array_builder ( const DynamicType_ptr  type,
const std::vector< uint32_t > &  bounds 
)

◆ create_array_builder() [2/2]

RTPS_DllAPI DynamicTypeBuilder * create_array_builder ( const DynamicTypeBuilder element_type,
const std::vector< uint32_t > &  bounds 
)

◆ create_bitmask_builder()

RTPS_DllAPI DynamicTypeBuilder * create_bitmask_builder ( uint32_t  bound)

◆ create_bitset_builder()

RTPS_DllAPI DynamicTypeBuilder * create_bitset_builder ( )

◆ create_bitset_type()

RTPS_DllAPI DynamicType_ptr create_bitset_type ( uint32_t  bound)

◆ create_bool_builder()

RTPS_DllAPI DynamicTypeBuilder * create_bool_builder ( )

◆ create_bool_type()

RTPS_DllAPI DynamicType_ptr create_bool_type ( )

◆ create_builder_copy()

RTPS_DllAPI DynamicTypeBuilder * create_builder_copy ( const DynamicTypeBuilder type)

◆ create_byte_builder()

RTPS_DllAPI DynamicTypeBuilder * create_byte_builder ( )

◆ create_byte_type()

RTPS_DllAPI DynamicType_ptr create_byte_type ( )

◆ create_char16_builder()

RTPS_DllAPI DynamicTypeBuilder * create_char16_builder ( )

◆ create_char16_type()

RTPS_DllAPI DynamicType_ptr create_char16_type ( )

◆ create_char8_builder()

RTPS_DllAPI DynamicTypeBuilder * create_char8_builder ( )

◆ create_char8_type()

RTPS_DllAPI DynamicType_ptr create_char8_type ( )

◆ create_child_struct_builder()

RTPS_DllAPI DynamicTypeBuilder * create_child_struct_builder ( DynamicTypeBuilder parent_type)

◆ create_custom_builder()

RTPS_DllAPI DynamicTypeBuilder * create_custom_builder ( const TypeDescriptor descriptor,
const std::string &  name = "" 
)

◆ create_enum_builder()

RTPS_DllAPI DynamicTypeBuilder * create_enum_builder ( )

◆ create_float128_builder()

RTPS_DllAPI DynamicTypeBuilder * create_float128_builder ( )

◆ create_float128_type()

RTPS_DllAPI DynamicType_ptr create_float128_type ( )

◆ create_float32_builder()

RTPS_DllAPI DynamicTypeBuilder * create_float32_builder ( )

◆ create_float32_type()

RTPS_DllAPI DynamicType_ptr create_float32_type ( )

◆ create_float64_builder()

RTPS_DllAPI DynamicTypeBuilder * create_float64_builder ( )

◆ create_float64_type()

RTPS_DllAPI DynamicType_ptr create_float64_type ( )

◆ create_int16_builder()

RTPS_DllAPI DynamicTypeBuilder * create_int16_builder ( )

◆ create_int16_type()

RTPS_DllAPI DynamicType_ptr create_int16_type ( )

◆ create_int32_builder()

RTPS_DllAPI DynamicTypeBuilder * create_int32_builder ( )

◆ create_int32_type()

RTPS_DllAPI DynamicType_ptr create_int32_type ( )

◆ create_int64_builder()

RTPS_DllAPI DynamicTypeBuilder * create_int64_builder ( )

◆ create_int64_type()

RTPS_DllAPI DynamicType_ptr create_int64_type ( )

◆ create_map_builder() [1/2]

RTPS_DllAPI DynamicTypeBuilder * create_map_builder ( DynamicType_ptr  key_type,
DynamicType_ptr  value_type,
uint32_t  bound = MAX_ELEMENTS_COUNT 
)

◆ create_map_builder() [2/2]

RTPS_DllAPI DynamicTypeBuilder * create_map_builder ( DynamicTypeBuilder key_element_type,
DynamicTypeBuilder element_type,
uint32_t  bound = MAX_ELEMENTS_COUNT 
)

◆ create_sequence_builder() [1/2]

RTPS_DllAPI DynamicTypeBuilder * create_sequence_builder ( const DynamicType_ptr  type,
uint32_t  bound = MAX_ELEMENTS_COUNT 
)

◆ create_sequence_builder() [2/2]

RTPS_DllAPI DynamicTypeBuilder * create_sequence_builder ( const DynamicTypeBuilder element_type,
uint32_t  bound = MAX_ELEMENTS_COUNT 
)

◆ create_string_builder()

RTPS_DllAPI DynamicTypeBuilder * create_string_builder ( uint32_t  bound = MAX_STRING_LENGTH)

◆ create_string_type()

RTPS_DllAPI DynamicType_ptr create_string_type ( uint32_t  bound = MAX_STRING_LENGTH)

◆ create_struct_builder()

RTPS_DllAPI DynamicTypeBuilder * create_struct_builder ( )

◆ create_type() [1/2]

RTPS_DllAPI DynamicType_ptr create_type ( const DynamicTypeBuilder other)

◆ create_type() [2/2]

RTPS_DllAPI DynamicType_ptr create_type ( const TypeDescriptor descriptor,
const std::string &  name = "" 
)

◆ create_uint16_builder()

RTPS_DllAPI DynamicTypeBuilder * create_uint16_builder ( )

◆ create_uint16_type()

RTPS_DllAPI DynamicType_ptr create_uint16_type ( )

◆ create_uint32_builder()

RTPS_DllAPI DynamicTypeBuilder * create_uint32_builder ( )

◆ create_uint32_type()

RTPS_DllAPI DynamicType_ptr create_uint32_type ( )

◆ create_uint64_builder()

RTPS_DllAPI DynamicTypeBuilder * create_uint64_builder ( )

◆ create_uint64_type()

RTPS_DllAPI DynamicType_ptr create_uint64_type ( )

◆ create_union_builder() [1/2]

RTPS_DllAPI DynamicTypeBuilder * create_union_builder ( DynamicType_ptr  discriminator_type)

◆ create_union_builder() [2/2]

RTPS_DllAPI DynamicTypeBuilder * create_union_builder ( DynamicTypeBuilder discriminator_type)

◆ create_wstring_builder()

RTPS_DllAPI DynamicTypeBuilder * create_wstring_builder ( uint32_t  bound = MAX_STRING_LENGTH)

◆ create_wstring_type()

RTPS_DllAPI DynamicType_ptr create_wstring_type ( uint32_t  bound = MAX_STRING_LENGTH)

◆ delete_builder()

RTPS_DllAPI ReturnCode_t delete_builder ( DynamicTypeBuilder builder)

◆ delete_instance()

static RTPS_DllAPI ReturnCode_t delete_instance ( )
static

◆ delete_type()

RTPS_DllAPI ReturnCode_t delete_type ( DynamicType type)

◆ get_instance()

static RTPS_DllAPI DynamicTypeBuilderFactory * get_instance ( )
static

◆ get_primitive_type()

RTPS_DllAPI DynamicType_ptr get_primitive_type ( TypeKind  kind)

◆ is_empty()

RTPS_DllAPI bool is_empty ( ) const

◆ set_annotation_default_value()

void set_annotation_default_value ( AnnotationParameterValue apv,
const MemberDescriptor member 
) const
protected

Member Data Documentation

◆ builders_list_

std::vector<DynamicTypeBuilder*> builders_list_
protected

◆ mutex_

std::recursive_mutex mutex_
mutableprotected

The documentation for this class was generated from the following file: