15 #ifndef TYPES_DYNAMIC_TYPE_H 16 #define TYPES_DYNAMIC_TYPE_H 18 #include <fastrtps/types/TypesBase.h> 19 #include <fastrtps/types/DynamicTypePtr.h> 25 class DomainParticipantImpl;
32 class AnnotationDescriptor;
34 class DynamicTypeMember;
35 class DynamicTypeBuilder;
63 RTPS_DllAPI
virtual void clear();
70 const std::string& name)
const;
74 const std::string& name);
80 const std::string& annotation_name,
81 const std::string& key,
82 const std::string& value);
90 const std::string& annotation_name,
91 const std::string& key,
92 const std::string& value);
114 const std::string& name);
129 std::map<MemberId, DynamicTypeMember*>& members);
132 std::map<std::string, DynamicTypeMember*>& members);
135 uint32_t index = 0)
const;
153 RTPS_DllAPI std::string
get_name()
const;
172 RTPS_DllAPI
size_t get_size()
const;
180 #endif // TYPES_DYNAMIC_TYPE_H RTPS_DllAPI uint32_t get_bounds(uint32_t index=0) const
ReturnCode_t copy_from_builder(const DynamicTypeBuilder *other)
bool is_key_defined_
Definition: DynamicType.h:121
RTPS_DllAPI bool key_annotation() const
Definition: DynamicTypeBuilderFactory.h:39
uint32_t get_annotation_count()
Definition: TypeObjectFactory.h:28
TypeDescriptor * descriptor_
Definition: DynamicType.h:116
RTPS_DllAPI TypeKind get_kind() const
Definition: DynamicType.h:148
Definition: TypeDescriptor.h:29
RTPS_DllAPI size_t get_size() const
RTPS_DllAPI const TypeDescriptor * get_descriptor() const
Definition: DynamicData.h:43
uint32_t MemberId
Definition: TypesBase.h:272
RTPS_DllAPI bool is_complex_kind() const
virtual RTPS_DllAPI ~DynamicType()
RTPS_DllAPI const TypeDescriptor * get_type_descriptor() const
Definition: DynamicType.h:159
ReturnCode_t apply_annotation_to_member(MemberId id, AnnotationDescriptor &descriptor)
RTPS_DllAPI bool equals(const DynamicType *other) const
DynamicType_ptr get_element_type() const
Definition: DynamicTypeMember.h:28
friend class fastdds::dds::DomainParticipantImpl
Definition: DynamicType.h:51
DynamicType_ptr get_key_element_type() const
ReturnCode_t get_member(DynamicTypeMember &member, MemberId id)
RTPS_DllAPI MemberId get_members_count() const
eProsima namespace.
Definition: LibrarySettingsAttributes.h:23
Definition: DynamicTypeBuilder.h:31
virtual RTPS_DllAPI void clear()
Definition: MemberDescriptor.h:28
RTPS_DllAPI ReturnCode_t get_all_members_by_name(std::map< std::string, DynamicTypeMember *> &members)
octet TypeKind
Definition: TypesBase.h:119
DynamicType_ptr get_discriminator_type() const
This class represents the enumeration ReturnCode_t.
Definition: TypesBase.h:188
std::string name_
Definition: DynamicType.h:119
Definition: DynamicType.h:37
Definition: DynamicDataFactory.h:31
bool exists_member_by_name(const std::string &name) const
TypeKind kind_
Definition: DynamicType.h:120
RTPS_DllAPI bool is_consistent() const
Definition: AnnotationDescriptor.h:28
ReturnCode_t get_annotation(AnnotationDescriptor &descriptor, uint32_t idx)
RTPS_DllAPI uint32_t get_total_bounds() const
std::map< std::string, DynamicTypeMember * > member_by_name_
Definition: DynamicType.h:118
RTPS_DllAPI uint32_t get_bounds_size() const
RTPS_DllAPI std::string get_name() const
ReturnCode_t get_member_by_name(DynamicTypeMember &member, const std::string &name)
RTPS_DllAPI bool has_children() const
Definition: DynamicDataHelper.hpp:29
void set_name(const std::string &name)
ReturnCode_t apply_annotation(AnnotationDescriptor &descriptor)
DynamicType_ptr get_base_type() const
std::map< MemberId, DynamicTypeMember * > member_by_id_
Definition: DynamicType.h:117
RTPS_DllAPI bool is_discriminator_type() const
Definition: DynamicTypePtr.h:26
RTPS_DllAPI ReturnCode_t get_all_members(std::map< MemberId, DynamicTypeMember *> &members)