15#ifndef FASTDDS_DDS_XTYPES_DYNAMIC_TYPES__MEMBERDESCRIPTOR_HPP
16#define FASTDDS_DDS_XTYPES_DYNAMIC_TYPES__MEMBERDESCRIPTOR_HPP
22#include <fastdds/dds/core/ReturnCode.hpp>
23#include <fastdds/dds/xtypes/dynamic_types/Types.hpp>
24#include <fastdds/fastdds_dll.hpp>
119 const std::string& default_value) = 0;
126 std::string&& default_value) = 0;
221 bool is_optional) = 0;
240 bool is_must_understand) = 0;
278 bool is_default_label) = 0;
Definition MemberDescriptor.hpp:33
virtual const UnionCaseLabelSeq & label() const =0
Returns the labels the member belongs to.
virtual void label(UnionCaseLabelSeq &&label)=0
Modifies the labels the member belongs to by move.
virtual MemberId & id()=0
Returns the MemberId of the member.
virtual bool & is_optional()=0
Returns the if the member is optional.
virtual traits< DynamicType >::ref_type & type()=0
Returns a reference to the member's type.
virtual traits< DynamicType >::ref_type type() const =0
Returns a reference to the member's type.
virtual bool is_consistent()=0
Indicates whether the states of all of this descriptor's properties are consistent according with the...
virtual TryConstructKind & try_construct_kind()=0
Returns the TryConstructKind of the member.
MemberDescriptor(const MemberDescriptor &type)=default
virtual ~MemberDescriptor()=default
MemberDescriptor()=default
virtual bool is_optional() const =0
Returns the if the member is optional.
virtual void name(ObjectName &&name)=0
Modifies the underlying member's name by move.
virtual bool is_key() const =0
Returns the if the member is key.
typename traits< MemberDescriptor >::ref_type _ref_type
Definition MemberDescriptor.hpp:36
virtual uint32_t & index()=0
Returns the order of definition of the member.
virtual ObjectName & name()=0
Returns the name of this member.
virtual ReturnCode_t copy_from(traits< MemberDescriptor >::ref_type descriptor)=0
Overwrites the contents of this descriptor with those of another descriptor (see [standard] 7....
virtual MemberId id() const =0
Returns the MemberId of the member.
virtual uint32_t index() const =0
Returns the order of definition of the member.
virtual void try_construct_kind(TryConstructKind try_construct_kind)=0
Modifies the TryConstructKind of the member.
virtual void is_shared(bool is_shared)=0
Modifies if the member is shared.
virtual void name(const ObjectName &name)=0
Modifies the underlying member's name by copy.
virtual void default_value(const std::string &default_value)=0
Modifies the underlying default value by copy.
MemberDescriptor(MemberDescriptor &&type)=default
virtual std::string & default_value()=0
Returns the default value.
virtual const ObjectName & name() const =0
Returns the name of this member.
virtual TryConstructKind try_construct_kind() const =0
Returns the TryConstructKind of the member.
virtual bool & is_must_understand()=0
Returns the if the member is must_understand.
virtual bool is_must_understand() const =0
Returns the if the member is must_understand.
virtual void label(const UnionCaseLabelSeq &label)=0
Modifies the labels the member belongs to by copy.
virtual void is_optional(bool is_optional)=0
Modifies if the member is optional.
virtual bool & is_default_label()=0
Returns the if the member is default_label.
virtual const std::string & default_value() const =0
Returns the default value.
virtual bool & is_shared()=0
Returns the if the member is shared.
virtual bool is_default_label() const =0
Returns the if the member is default_label.
virtual bool & is_key()=0
Returns the if the member is key.
virtual void is_key(bool is_key)=0
Modifies if the member is key.
virtual UnionCaseLabelSeq & label()=0
Returns the labels the member belongs to.
virtual void is_default_label(bool is_default_label)=0
Modifies if the member is default_label.
virtual void default_value(std::string &&default_value)=0
Modifies the underlying default value by move.
virtual void id(MemberId id)=0
Modifies the underlying MemberId.
virtual bool is_shared() const =0
Returns the if the member is shared.
virtual bool equals(traits< MemberDescriptor >::ref_type descriptor)=0
Compares according with the [standard] section 7.5.2.7.4.
virtual void type(traits< DynamicType >::ref_type type)=0
Modifies the underlying member's type reference.
virtual void is_must_understand(bool is_must_understand)=0
Modifies if the member is must_understand.
TryConstructKind
This class represents the enumeration TryConstructKind defined by the user in the IDL file.
Definition dynamic_language_binding.hpp:117
Definition DomainParticipant.hpp:45
uint32_t MemberId
Definition dynamic_language_binding.hpp:122
std::vector< int32_t > UnionCaseLabelSeq
Definition dynamic_language_binding.hpp:124
int32_t ReturnCode_t
Definition DDSReturnCode.hpp:59
eprosima::fastcdr::fixed_string< 256 > ObjectName
Definition dynamic_language_binding.hpp:66
typename ::std::shared_ptr< T > ref_type
Definition type_traits.hpp:29