15#ifndef FASTDDS_DDS_XTYPES_DYNAMIC_TYPES__DYNAMICTYPE_HPP
16#define FASTDDS_DDS_XTYPES_DYNAMIC_TYPES__DYNAMICTYPE_HPP
20#include <fastdds/dds/core/ReturnCode.hpp>
21#include <fastdds/dds/xtypes/dynamic_types/AnnotationDescriptor.hpp>
22#include <fastdds/dds/xtypes/dynamic_types/DynamicTypeMember.hpp>
23#include <fastdds/dds/xtypes/dynamic_types/TypeDescriptor.hpp>
24#include <fastdds/dds/xtypes/dynamic_types/Types.hpp>
25#include <fastdds/dds/xtypes/dynamic_types/VerbatimTextDescriptor.hpp>
26#include <fastdds/fastdds_dll.hpp>
32class DynamicType :
public std::enable_shared_from_this<DynamicType>
161 FASTDDS_EXPORTED_API
virtual bool equals(
Definition DynamicType.hpp:33
virtual FASTDDS_EXPORTED_API ReturnCode_t get_member(traits< DynamicTypeMember >::ref_type &member, MemberId id)=0
Returns the member that corresponds to the specified MemberId.
virtual FASTDDS_EXPORTED_API uint32_t get_verbatim_text_count()=0
Returns the number of applied verbatim text to the type.
virtual FASTDDS_EXPORTED_API ReturnCode_t get_member_by_name(traits< DynamicTypeMember >::ref_type &member, const ObjectName &name)=0
Returns the member that corresponds to the specified name.
virtual FASTDDS_EXPORTED_API ReturnCode_t get_all_members_by_name(DynamicTypeMembersByName &member)=0
Returns all members by ObjectName.
virtual FASTDDS_EXPORTED_API ReturnCode_t get_member_by_index(traits< DynamicTypeMember >::ref_type &member, uint32_t index)=0
This operation returns the member that corresponds to the specified index.
virtual FASTDDS_EXPORTED_API ReturnCode_t get_descriptor(traits< TypeDescriptor >::ref_type &descriptor)=0
Provides a summary of the state of this type overwriting a provided object (see [standard] 7....
virtual FASTDDS_EXPORTED_API TypeKind get_kind()=0
Returns the TypeKind associated.
virtual FASTDDS_EXPORTED_API ReturnCode_t get_annotation(traits< AnnotationDescriptor >::ref_type &descriptor, uint32_t idx)=0
Returns an applied annotation by index.
virtual FASTDDS_EXPORTED_API ReturnCode_t get_all_members(DynamicTypeMembersById &member)=0
Returns all members by MemberId.
typename traits< DynamicType >::ref_type _ref_type
Definition DynamicType.hpp:36
virtual FASTDDS_EXPORTED_API uint32_t get_member_count()=0
This operation returns the current number of members.
virtual FASTDDS_EXPORTED_API ObjectName get_name()=0
Returns the fully qualified name of this type.
virtual FASTDDS_EXPORTED_API uint32_t get_annotation_count()=0
Returns the number of applied annotations to the type.
virtual ~DynamicType()=default
virtual FASTDDS_EXPORTED_API ReturnCode_t get_verbatim_text(traits< VerbatimTextDescriptor >::ref_type &descriptor, uint32_t idx)=0
Returns an applied verbatim text by index.
virtual FASTDDS_EXPORTED_API bool equals(traits< DynamicType >::ref_type other)=0
State comparison according with the [standard] sections 7.5.2.8.4.
traits< DynamicType >::ref_type _this()
Definition DomainParticipant.hpp:45
uint32_t MemberId
Definition dynamic_language_binding.hpp:122
std::map< MemberId, traits< DynamicTypeMember >::ref_type > DynamicTypeMembersById
Definition DynamicTypeMember.hpp:133
int32_t ReturnCode_t
Definition DDSReturnCode.hpp:59
eprosima::fastcdr::fixed_string< 256 > ObjectName
Definition dynamic_language_binding.hpp:66
std::map< ObjectName, traits< DynamicTypeMember >::ref_type > DynamicTypeMembersByName
Definition DynamicTypeMember.hpp:131
uint8_t TypeKind
Definition dynamic_language_binding.hpp:70
typename ::std::shared_ptr< T > ref_type
Definition type_traits.hpp:29